-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: parametrize services Dockerfile path #1600
chore: parametrize services Dockerfile path #1600
Conversation
Hey @rogercoll 👋🏽 This is interesting, and I like where this is going. That would avoid the concatenation in the compose file and it would help when things do not go as expected. |
Definitely, it will be even more helpful for vendors that want to completely move a service to a different directory. Something like 8a40cd0 ? PS I will bring this PR/idea to today's SIG meeting |
@rogercoll, with 2 env vars to do the solution you mention we would need to update 2 places:
My initial thought was having 1 env var containing the full path, do you see other use cases where having 2 would make more sense? |
Just the ability to point the whole service to another directory, for example, let's say we do a copy of the
That would not be mandatory, as only the
or
I don't have a strong opinion on the |
I would like to use a single variable for each service containing the path and name of the Dockerfile. If someone needs to update this, they only need to update a single spot to reflect either a new folder or a new Dockerfile name. |
me too! |
@julianocosta89 @puckpuck 👍 We can keep it simple for the moment and just use the Dockerfile variable. Path environment variable removed in d328586 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
* chore: parametrize services Dockerfile path * chore: add ad service relative path * chore: add services path as environment variable * ci: fix emailservice context build * remove unused *_PATH environment variable --------- Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
* chore: parametrize services Dockerfile path * chore: add ad service relative path * chore: add services path as environment variable * ci: fix emailservice context build * remove unused *_PATH environment variable --------- Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
Changes
Define services paths and Dockerfiles using and environment variable so it can be easily overridden. With the added variables, a vendor can easily point to another Dockerfile using the
.env.override
file:That would help to make changes additive, thus minimizing merge conflicts.
In addition, the demo can also benefit from it and add different Dockerfile for the services and reflect different Otel deployment strategies.
The PR also aligns the
emailservice
Dockerfile with the other's services strategy by expecting to be built from the root's repository path.Merge Requirements
For new features contributions please make sure you have completed the following
essential items:
* [ ]CHANGELOG.md
updated to document new feature additions* [ ] Appropriate documentation updates in the docs* [ ] Appropriate Helm chart updates in the helm-chartsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.