Open u2bo opened 4 years ago
the step【Taking snapshot of full filesystem】【Unpacking rootfs as cmd COPY . . requires it. 】 It usually takes a lot of time。 have some change to solve this?
Thanks @swqmaven. We are going to look in to performance soon. We have a tool slowjam written by @tstromberg which can identify which func call is slow. @priyawadhwa put a branch with instructions on how to run slowjam here https://github.com/priyawadhwa/kaniko/tree/slowjam
It would be great if you can follow the instructions here to run kaniko with slowjam. If you need any help, please let me know.
We also have this same issue -- any improvements on this front?
Also, how can I help with this? I can run slowjam but I'm not quite clear if you want me to run that locally or on jenkins. Is there a slowjam image built already that I could try?
in jenkins used kubernetes plugin build docker file spend a lot of time used dind agent 2 minutes kaniko 4 minutes it's same docker file the file looks like this ''' FROM docker.hub/library/javalib:latest AS compiler
ARG REPO_PATH ARG BRANCH
WORKDIR /usr/share
RUN set -ex \ && git clone http://oauth2:xxxxxxx@xx.xx.xxx.xx:8888/xxxxxxx.git \ && cd /usr/share/xxxxxxx \ && git checkout ${BRANCH}
RUN cd /usr/share/rightcloud-bss && mvn clean package -T 4C -s /usr/share/maven/ref/settings.xml -Dmaven.test.skip=true -Dmaven.compile.fork=true
FROM image.rightcloud.com.cn/library/java:openjre8-alpine COPY --from=compiler /usr/share/xxxxxxx/target/xxxxxxx-*.jar app.jar COPY --from=compiler /usr/share/xxxxxxx/docker/config.sh config.sh RUN set -ex \ && chmod +x /config.sh CMD ["/config.sh"] '''