Open jeremyjpj0916 opened 6 years ago
Interesting, I decided to break up your giant 1 RUN statment into separate ones:
# cleanup
RUN cd ~ && \
apk del --purge \
build-dependencies && \
rm -rf /var/cache/apk/* /tmp/* /etc/init.d
For some reason the above is what fails... the cleanup lol..
F1118 07:09:25.472658 1 builder.go:204] Error: build error: The command '/bin/sh -c cd ~ && apk del --purge build-dependencies && rm -rf /var/cache/apk/ /tmp/ /etc/init.d' returned a non-zero code: 1
I wonder if its okay to not do cleanup?
If I remove cleanup the build works fine, but when i go to deploy I get error: expecting a resource on kubernetes... I wonder if I need a CMD command at the end of the dockerfile...
Hi,
It's been a while since I used this image. I'll take a look next week. But you gave to know this image use s6 overlay to handle the signals.
And yes its important to run the cleanup on the same layer. Otherwise you do not really remove the files on the image, they stay in the previous layer.
BTW I'm refactoring my images. I'll do it step by step.
I'll close this issue when the image will be up and running again with my new setup.
I just tested with alpine 3.6 and for one small step you need:
Otherwise one of the install blurbs reads Failed rather than Ok. it contains the rc-update call this script makes....
Even with that corrected when I try to deploy this to kubernetes as a docker container I get the following error in the end...:
Any ideas?