You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
container=$(docker run ...)
# do stuff in container
docker stop $container
docker commit $container <tag>
Currently chalk only supports first approach which adds chalk metadata to the built image. We should add support for doing something similar for the second case.
Result
Created images from running containers will be chalked which will include repo metadata/etc
Wrapping
The complexity will be how to make it work with entrypoint wrapping/etc. But that can be done with intermediate docker build internally:
container=$(docker run ...)
# do stuff in container
docker stop $container
chalk docker commit $container <tag>
# internally:
docker commit $container chalk-tmp
docker build . -f - < <(cat <<EOF
FROM chalk-tmp
COPY /chalk /chalk
...
EOF
)
This should allow to reuse all the logic from the docker build flow as well.
The text was updated successfully, but these errors were encountered:
Description
There are 2 ways to build an image in docker:
Currently chalk only supports first approach which adds chalk metadata to the built image. We should add support for doing something similar for the second case.
Result
Created images from running containers will be chalked which will include repo metadata/etc
Wrapping
The complexity will be how to make it work with entrypoint wrapping/etc. But that can be done with intermediate docker build internally:
This should allow to reuse all the logic from the docker build flow as well.
The text was updated successfully, but these errors were encountered: