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

Find a way of bringing configuration into the container #1

Closed
widhalmt opened this issue Apr 29, 2020 · 1 comment · Fixed by #11
Closed

Find a way of bringing configuration into the container #1

widhalmt opened this issue Apr 29, 2020 · 1 comment · Fixed by #11
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@widhalmt
Copy link
Member

Other projects use different ways of bringing configuration for Icinga 2 into the container.

Options already discussed:

  • Mounting an external volume where you just put your configuration and have it loaded
  • Using a reusable configuration and fill it with environment variables

Are there other ideas? Submitting more configuration via API might be doable but needs a basic configuration nonetheless.

@widhalmt widhalmt added help wanted Extra attention is needed question Further information is requested labels Apr 29, 2020
@widhalmt widhalmt mentioned this issue Apr 29, 2020
@bodsch
Copy link

bodsch commented Apr 30, 2020

There are different ways to persist configurations.
It is important to understand that when building a Conatiner the software is installed with a valid configuration.
At startup, changes may be made to the configuration (e.g. constans.conf), which are no longer present when the Conatiner is restarted.
In this case it is not helpful to use a docker volume, because it is empty at the first start.
therefore the docker entrypoint must use appropriate mechanisms to copy persistent configurations over the existing build configuration.

Al2Klimov added a commit that referenced this issue Jun 22, 2020
Al2Klimov added a commit that referenced this issue Jun 22, 2020
Al2Klimov added a commit that referenced this issue Jun 22, 2020
Al2Klimov added a commit that referenced this issue Jun 22, 2020
Al2Klimov added a commit that referenced this issue Jun 22, 2020
@N-o-X N-o-X closed this as completed in #11 Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants