Skip to content

Escape environment variables, add things to the "docker create" container #66

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nalind
Copy link
Contributor

@nalind nalind commented Jun 22, 2015

LABEL statements in Dockerfiles have environment variables interpolated into them, so we need to escape them so that they won't be prematurely evaluated by the builder, so that they can be evaluated by "atomic".
The container that we create during "atomic install" needs the cgroups hierarchy to be mounted, since it's using systemd's init as its entry point, and its port 80 exposed, both to also agree with how we tell "atomic" to run the image.

nalind added 4 commits June 19, 2015 17:11
Make building an image slightly faster by putting shorter label
definitions on a single line.
Since 6784a772baaa20936f00b8adc00a4b4444356181 or so, environment
variable values have been evaluated as part of processing LABEL
statements at build-time.  Since we want to preserve these for when the
"atomic" command runs them, escape them.
When we're installing a container, add the cgroups hierarchy to the list
of volumes it'll need, since we're using systemd's init as the container
entry point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant