uber-archive / makisu

Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.
Apache License 2.0
2.41k stars 153 forks source link

Recover root fs after build when using makisu-alpine #213

Closed yiranwang52 closed 5 years ago

yiranwang52 commented 5 years ago

There are users trying to use makisu-alpine with Jenkins k8s plugin:

I’m facing another issue. The Jenkins k8s plugin requires the containers to be available throughout the pipeline, so I’m using the makisu-alpine image, with tty: true, and cat as the command, so the container remains up. After that the plugin routinely runs touch to check all containers. However once I use the makisu binary to build the docker image, the k8s plugin can no longer execute any command within the makisu container (sh: touch: not found). Does building an image deletes all binaries or alters $PATH in the makisu container? If so, is there a workaround?

One solution is to recover root fs at the end of the build.