-
Notifications
You must be signed in to change notification settings - Fork 1
SRE-3223 ci: Use DAOS_HTTPS_PROXY and DAOS_NO_PROXY #90
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
Merged
+70
−33
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # | ||
| # Copyright 2018-2024 Intel Corporation | ||
| # Copyright 2025 Hewlett Packard Enterprise Development LP | ||
| # Copyright 2025-2026 Hewlett Packard Enterprise Development LP | ||
| # | ||
| # 'recipe' for Docker to build an RPM | ||
| # | ||
|
|
@@ -12,37 +12,43 @@ FROM fedora:$FVERSION | |
| ARG FVERSION | ||
| LABEL maintainer="[email protected]" | ||
|
|
||
| # Use local repo server if present | ||
| ARG REPO_FILE_URL | ||
| ARG DAOS_LAB_CA_FILE_URL | ||
| ARG REPOSITORY_NAME | ||
|
|
||
| # Accept DAOS_NO_PROXY at build time | ||
| # Accept DAOS_HTTP_PROXY, DAOS_HTTPS_PROXY, and DAOS_NO_PROXY at build time | ||
| ARG DAOS_NO_PROXY | ||
| # Propagate into the build environment | ||
| ENV no_proxy=${DAOS_NO_PROXY} | ||
| ENV NO_PROXY=${DAOS_NO_PROXY} | ||
| # Persist into /etc/environment for use by shells and services | ||
| RUN echo "no_proxy=${DAOS_NO_PROXY}" >> /etc/environment && \ | ||
| echo "NO_PROXY=${DAOS_NO_PROXY}" >> /etc/environment | ||
|
|
||
| # Accept DAOS_HTTPS_PROXY at build time | ||
| ARG DAOS_HTTP_PROXY | ||
| ARG DAOS_HTTPS_PROXY | ||
|
|
||
| # Propagate into the build environment | ||
| ENV https_proxy=${DAOS_HTTPS_PROXY} | ||
| ENV HTTPS_PROXY=${DAOS_HTTPS_PROXY} | ||
| ENV http_proxy=${DAOS_HTTP_PROXY} \ | ||
| HTTP_PROXY=${DAOS_HTTP_PROXY} \ | ||
| https_proxy=${DAOS_HTTPS_PROXY} \ | ||
| HTTPS_PROXY=${DAOS_HTTPS_PROXY} \ | ||
| no_proxy=${DAOS_NO_PROXY} \ | ||
| NO_PROXY=${DAOS_NO_PROXY} | ||
|
|
||
| # Persist into /etc/environment for use by shells and services | ||
| RUN echo "https_proxy=${DAOS_HTTPS_PROXY}" >> /etc/environment && \ | ||
| echo "HTTPS_PROXY=${DAOS_HTTPS_PROXY}" >> /etc/environment | ||
| RUN set -e; \ | ||
| if [ -n "$DAOS_HTTP_PROXY" ]; then \ | ||
| echo "http_proxy=$DAOS_HTTP_PROXY" >> /etc/environment; \ | ||
| echo "HTTP_PROXY=$DAOS_HTTP_PROXY" >> /etc/environment; \ | ||
| fi; \ | ||
| if [ -n "$DAOS_HTTPS_PROXY" ]; then \ | ||
| echo "https_proxy=$DAOS_HTTPS_PROXY" >> /etc/environment; \ | ||
| echo "HTTPS_PROXY=$DAOS_HTTPS_PROXY" >> /etc/environment; \ | ||
| fi; \ | ||
| if [ -n "$DAOS_NO_PROXY" ]; then \ | ||
| echo "no_proxy=$DAOS_NO_PROXY" >> /etc/environment; \ | ||
| echo "NO_PROXY=$DAOS_NO_PROXY" >> /etc/environment; \ | ||
| fi | ||
|
|
||
| # script to install OS updates basic tools and daos dependencies | ||
| # COPY ./utils/scripts/install-fedora.sh /tmp/install.sh | ||
| # script to setup local repo if available | ||
| COPY ./packaging/scripts/repo-helper-fedora.sh /tmp/repo-helper.sh | ||
| # Use local repo server if present | ||
| ARG REPO_FILE_URL | ||
| ARG DAOS_LAB_CA_FILE_URL | ||
| ARG REPOSITORY_NAME | ||
|
|
||
| RUN chmod +x /tmp/repo-helper.sh && \ | ||
| /tmp/repo-helper.sh && \ | ||
| rm -f /tmp/repo-helper.sh | ||
| # Script to setup a local repo instead of the distro-provided one. | ||
| # Only takes effect when REPO_FILE_URL is set; otherwise it is a no-op. | ||
| RUN --mount=type=bind,source=packaging/scripts/repo-helper-fedora.sh,target=/tmp/repo-helper-fedora.sh \ | ||
| /tmp/repo-helper-fedora.sh | ||
|
|
||
| # Install basic tools | ||
| RUN dnf -y install mock make rpm-build createrepo rpmlint git \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| # Jenkinsfile will be changed to use Dockerfile.ubuntu. | ||
| # | ||
| # Copyright 2019-2021, Intel Corporation | ||
| # Copyright 2025 Hewlett Packard Enterprise Development LP | ||
| # Copyright 2025-2026 Hewlett Packard Enterprise Development LP | ||
| # | ||
| # 'recipe' for Docker to build an Debian package | ||
| # | ||
|
|
@@ -14,15 +14,41 @@ LABEL org.opencontainers.image.authors="[email protected]" | |
| # Needed for later use of BASE_DISTRO | ||
| ARG BASE_DISTRO | ||
|
|
||
| # Accept DAOS_HTTP_PROXY, DAOS_HTTPS_PROXY, and DAOS_NO_PROXY at build time | ||
| ARG DAOS_NO_PROXY | ||
| ARG DAOS_HTTP_PROXY | ||
| ARG DAOS_HTTPS_PROXY | ||
|
|
||
| # Propagate into the build environment | ||
| ENV http_proxy=${DAOS_HTTP_PROXY} \ | ||
| HTTP_PROXY=${DAOS_HTTP_PROXY} \ | ||
| https_proxy=${DAOS_HTTPS_PROXY} \ | ||
| HTTPS_PROXY=${DAOS_HTTPS_PROXY} \ | ||
| no_proxy=${DAOS_NO_PROXY} \ | ||
| NO_PROXY=${DAOS_NO_PROXY} | ||
|
|
||
| # Persist into /etc/environment for use by shells and services | ||
| RUN set -e; \ | ||
| if [ -n "$DAOS_HTTP_PROXY" ]; then \ | ||
| echo "http_proxy=$DAOS_HTTP_PROXY" >> /etc/environment; \ | ||
| echo "HTTP_PROXY=$DAOS_HTTP_PROXY" >> /etc/environment; \ | ||
| fi; \ | ||
| if [ -n "$DAOS_HTTPS_PROXY" ]; then \ | ||
| echo "https_proxy=$DAOS_HTTPS_PROXY" >> /etc/environment; \ | ||
| echo "HTTPS_PROXY=$DAOS_HTTPS_PROXY" >> /etc/environment; \ | ||
| fi; \ | ||
| if [ -n "$DAOS_NO_PROXY" ]; then \ | ||
| echo "no_proxy=$DAOS_NO_PROXY" >> /etc/environment; \ | ||
| echo "NO_PROXY=$DAOS_NO_PROXY" >> /etc/environment; \ | ||
| fi | ||
|
|
||
| ARG REPO_FILE_URL | ||
| ARG DAOS_LAB_CA_FILE_URL | ||
| ARG REPOSITORY_NAME | ||
| # script to setup local repo if available | ||
| COPY ./packaging/scripts/repo-helper-ubuntu.sh /tmp/repo-helper.sh | ||
|
|
||
| RUN chmod +x /tmp/repo-helper.sh && \ | ||
| /tmp/repo-helper.sh && \ | ||
| rm -f /tmp/repo-helper.sh | ||
| # Script to setup a local repo instead of the distro-provided one. | ||
| # Only takes effect when REPO_FILE_URL is set; otherwise it is a no-op. | ||
| RUN --mount=type=bind,source=packaging/scripts/repo-helper-ubuntu.sh,target=/tmp/repo-helper-ubuntu.sh \ | ||
| /tmp/repo-helper-ubuntu.sh | ||
|
|
||
| # Install basic tools - rpmdevtools temporary commented out. | ||
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.