-
Notifications
You must be signed in to change notification settings - Fork 522
CLOUDP-83092: Add context images for agents. #435
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
Conversation
…ithub.com:mongodb/mongodb-kubernetes-operator into CLOUDP-83092_add_release_task_for_init_containers
rodrigovalin
left a comment
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.
LGTM with one comment.
- no blocker: I think the agent's builder Docker file can be made a little less verbose by using ADD, it can be done easily
| - tools_version | ||
| - tools_distro | ||
| - agent_distro | ||
| - noop |
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.
I think you fixed this already :)
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.
we haven't yet released 0.10.0, but let's do that now, no harm!
| @@ -0,0 +1,18 @@ | |||
| FROM curlimages/curl:7.76.1 as builder | |||
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.
I think this one can be replaced by a scratch image like
FROM scratch
ADD https://mciuploads.s3.amazonaws.com/mms-automation/mongodb-mms-build-agent/builds/automation-agent/prod/mongodb-mms-automation-agent-${agent_version}.${agent_distro}.tar.gz /data/mongodb-agent.tgz
ADD https://downloads.mongodb.org/tools/db/mongodb-database-tools-${tools_distro}-${tools_version}.tgz /data/mongodb-tools.tgz
ADD agent/LICENSE /data/licensesInstead of the multi-stage build with curl.
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.
ah much better!
| COPY --from=base /data/mongodb-agent.tar.gz agent | ||
| COPY --from=base data/mongodb-tools.tgz . |
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.
Sources and destinations are really different here. Why is that? It is kind of confusing.
| && chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log | ||
|
|
||
|
|
||
| COPY --from=base /data/mongodb-agent.tar.gz agent |
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.
Can we use absolute directories for the destination? Or it will depend on current WORKDIR
|
@rodrigovalin updated based on your feedback! Everything is using absolute paths now. |
|
LGTM |
All Submissions:
This PR refactors the agent Dockerfiles to now use a context builder.