-
Notifications
You must be signed in to change notification settings - Fork 544
CXX-3265 Update release instructions to use Amazon ECR instead of Artifactory #1425
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
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 minor comments.
|
||
RUN apk update && apk upgrade && apk add --no-cache openssl3 libstdc++ libc6-compat | ||
|
||
COPY --from=builder /opt/mongocxx /usr/local | ||
|
||
RUN true |
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.
Remove stray RUN true
?
"alpine3.19": "", | ||
"bookworm": "\nRUN ldconfig\n", | ||
"noble": "\nRUN ldconfig\n", | ||
"alpine3.19": "\nRUN true", |
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.
"alpine3.19": "\nRUN true", | |
"alpine3.19": "", |
Remove unnecessary RUN true
? I expect these changes were for newline consistency. Since a newline is later appended, I expect this can be empty.
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.
Annoyingly, if the expansion is empty (prior value of ""
), the Dockerfile for alpine3.19
ends up with a trailing newline:
COPY --from=builder /opt/mongocxx /usr/local
+ (empty line)
(EOF newline)
I could not find a way to coerce Jinja2 to avoid expanding {{ post_install_commands }}
without an extra newline given a value of ""
or None
. For typical Jinja2 expansions, one would use %
(e.g. {% var %}
), but that doesn't seem to apply to {{ var }}
expansions... 😕
.evergreen/scripts/sbom.sh
Outdated
: "${ARTIFACTORY_USER:?}" | ||
: "${ARTIFACTORY_PASSWORD:?}" |
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.
No longer used:
: "${ARTIFACTORY_USER:?}" | |
: "${ARTIFACTORY_PASSWORD:?}" |
'ARTIFACTORY_PASSWORD', | ||
'ARTIFACTORY_USER', |
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.
No longer used:
'ARTIFACTORY_PASSWORD', | |
'ARTIFACTORY_USER', |
Resolves CXX-3265. Applies changes similar to those in mongodb/mongo-c-driver#2058.
extras/docker
are updated to support setting aDEFAULT_SEARCH_REGISTRY
environment variable (pass tomake
) which is forwarded as a Dockerdefault_search_registry
argument, similar todefault_search_registry
for the Earthfile in CDRIVER-5971 Use Amazon ECR to obtain OCI images in EVG mongo-c-driver#2058. (Note: Earthfile syntax slightly differs from Dockerfile syntax.)The
generate.py
script and related files has been drive-by improved for better consistency (e.g. trailing newlines) and with inline script metadata to supportuv run
.