-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable overwriting of links (solves #351) #360
Enable overwriting of links (solves #351) #360
Conversation
/ok-to-test |
Hey @xanonid, thanks for contributing this fix! Could you add A simple Dockerfile:
should suffice. |
@priyawadhwa Thanks, I added a Dockerfile for the integration test as suggested. |
@sharifelgamal Seems like the kokoro check did not run again. Is there something I can do? |
I'll try poking kokoro... |
The test failure is: ]time="2018-09-21T07:44:27-07:00" level=warning msg="remove /tmpfs/tmp/gcr.iokaniko-testkaniko-dockerfile_test_replaced_hardlinks081715982/root/.bash_profile: permission denied"
time="2018-09-21T07:44:28-07:00" level=warning msg="remove /tmpfs/tmp/gcr.iokaniko-testdocker-dockerfile_test_replaced_hardlinks989545749/root/.bash_profile: permission denied" which looks like an issue with the base image and container-diff. I'll look into it a bit... |
Is there any way you could reproduce this with a simpler base image than: docker.elastic.co/kibana/kibana@sha256:e61c1122d9bc8dc8a113c79a035cf3c34d09674685f550ec842afc2d923ad568 |
127676c
to
778b30f
Compare
@dlorenc I replaced the test image. Hopefully, this works better. Could you trigger kokoro again if necessary, please? |
I can confirm that this change corrects the issue below... (I've tested it with one of my builds and it works fine now) This is the error prior to applying the change in this PR: INFO[0000] Downloading base image gcr.io/google-appengine/openjdk:8
INFO[0000] Mounted directories: [/kaniko /var/run /etc/mtab /proc /dev /dev/pts /sys /sys/fs/cgroup /sys/fs/cgroup/systemd /sys/fs/cgroup/cpuset /sys/fs/cgroup/blkio /sys/fs/cgroup/freezer /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/devices /sys/fs/cgroup/pids /sys/fs/cgroup/rdma /sys/fs/cgroup/memory /sys/fs/cgroup/net_cls,net_prio /sys/fs/cgroup/perf_event /sys/fs/cgroup/hugetlb /dev/mqueue /source /containers /dev/termination-log /etc/resolv.conf /etc/hostname /etc/hosts /dev/shm /run/secrets/kubernetes.io/serviceaccount /proc/bus /proc/fs /proc/irq /proc/sys /proc/sysrq-trigger /proc/kcore /proc/timer_list /sys/firmware]
INFO[0000] Extracting layer 0
error building image: error building stage: link /bin/gunzip /bin/uncompress: file exists |
@dlorenc kokoro seemed to fail again 😞. Probably the base image was not different enough to the last? Is there another way than simple try-and-error? |
778b30f
to
32c3553
Compare
@priyawadhwa Thanks - great news. BTW, I added another commit which fixes problems, if symlinks are replaced by normal files. |
32c3553
to
b1d4c52
Compare
@priyawadhwa I rebased the commits. |
Let's see what Kokoro thinks! |
@dlorenc The Kokoro run was successful 👍 |
Woohoo! |
Just confirming, this PR did fix my issues.
Thanks! |
This issue is now solved for us too, but #245 is still a blocker. |
No description provided.