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

chore(build): allow a custom zebrad config file path #5163

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

gustavovalverde
Copy link
Member

Previous behavior:

The zebrad config file was hardcoded into the Dockerfile, allowing to change specific values, but not the config file as a whole

Expected behavior:

Allow the user to specify the config file themselves, for example with the nginx image you can pass -v /host/path/nginx.conf:/etc/nginx/nginx.conf:ro

Solution:

Use and ARG, with a default value, to allow the user to change the location of the zebrad configuration file. This also sets the location under /etc, honoring The Filesystem Hierarchy Standard (FHS) for linux

Review

Anyone can review this, but @conradoplg proposed the change.

Reviewer Checklist

  • CI passes
  • Tests for Expected Behavior

Previous behavior:
The zebrad config file was hardcoded into the Dockerfile, allowing to
change specific values, but not the config file as a whole

Expected behavior:
Allow the user to specify the config file themselves, for example with
the nginx image you can pass -v /host/path/nginx.conf:/etc/nginx/nginx.conf:ro

Solution:
Use and ARG, with a default value, to allow the user to change the location
of the zebrad configuration file. This also sets the location under /etc,
honoring The Filesystem Hierarchy Standard (FHS) for linux
@gustavovalverde gustavovalverde added A-infrastructure Area: Infrastructure changes A-devops Area: Pipelines, CI/CD and Dockerfiles C-enhancement Category: This is an improvement P-Low ❄️ I-usability Zebra is hard to understand or use labels Sep 14, 2022
@gustavovalverde gustavovalverde self-assigned this Sep 14, 2022
@gustavovalverde gustavovalverde requested a review from a team as a code owner September 14, 2022 20:15
@gustavovalverde gustavovalverde requested review from arya2 and removed request for a team September 14, 2022 20:15
docker/Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few suggestions, none of them are blocking, and only the path change needs to go in this PR. (If we decide to do it.)

But I'd like to make sure we have tickets any we need, so we don't forget.

Co-authored-by: teor <teor@riseup.net>
mergify bot added a commit that referenced this pull request Sep 15, 2022
@mergify mergify bot merged commit e48e8e5 into main Sep 15, 2022
@mergify mergify bot deleted the imp-zebra-config-path branch September 15, 2022 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles A-infrastructure Area: Infrastructure changes C-enhancement Category: This is an improvement I-usability Zebra is hard to understand or use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants