Skip to content
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

addressing the confusion in issue #459 #520

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Conversation

kingdonb
Copy link
Collaborator

@kingdonb kingdonb commented Nov 20, 2018

There was some confusion about where the environment variables are placed such as DISABLE_CRON, DISABLE_SYSLOG, DISABLE_SSH. This PR should serve to clarify that you cannot just DISABLE_CRON=1 make build but you actually need to provide these variables to the Docker build, in a child image's Dockerfile (? on second thought, does this strategy actually work? test before merge) or in options passed to Docker during the build.

@kingdonb kingdonb changed the title addressing the confusion in issue #459 WIP: addressing the confusion in issue #459 Nov 20, 2018
@kingdonb
Copy link
Collaborator Author

I am pretty sure that one of my suggested options for configuration won't work, that is, you can't put these ENV variables in a child image after the baseimage-docker parent is already built... it is "buildconfig" and that will be too late.

@kingdonb kingdonb changed the title WIP: addressing the confusion in issue #459 addressing the confusion in issue #459 Nov 20, 2018
@kingdonb
Copy link
Collaborator Author

That's better... there is really a very narrow window of time (before the baseimage is built) where these values can be set to any effect.

There used to be some guidance about disabling services in child images at runtime that I can't find readily in the README just now; this configuration change would be used instead to ensure that the services that are not desired don't get installed at all (thereby making the baseimage size smaller.)

@Theaxiom Theaxiom added this to the 0.11.1 milestone Nov 26, 2018
@Theaxiom Theaxiom merged commit 60e2cdd into phusion:master Nov 26, 2018
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.

2 participants