Skip to content

Commit

Permalink
Pull all images through the proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Feb 8, 2024
1 parent eeb63a5 commit 7e929f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jobs/build-charms/builder_launchpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, *args, **kwargs) -> None:
self._lp_build_log_cache = {}

assert self.type == "Charm", "Only supports charm builds"
assert "launchpad.net" in self._lp_bugs, "No associated with launchpad"
assert "launchpad.net" in self._lp_bugs, "Not associated with launchpad"

@cached_property
def _lp(self):
Expand Down
12 changes: 2 additions & 10 deletions jobs/sync-oci-images/sync-oci-images.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ pipeline {
function pull_ctr () {
sudo lxc exec $LXC_NAME \
--env HTTP_PROXY="${PROXY}" \
--env HTTPS_PROXY="${PROXY}" \
--env HTTP_PROXY="http://squid.internal:3128" \
--env HTTPS_PROXY="http://squid.internal:3128" \
--env CREDS="${PULL_CREDS}" \
--env IMAGE=${1} \
-- sh -c 'ctr content fetch ${CREDS} ${IMAGE} --all-platforms > /dev/null';
Expand Down Expand Up @@ -213,14 +213,6 @@ pipeline {
PULL_CREDS=
fi
# Pull Through proxy
if echo ${i} | grep -qi -e 'nvcr.io'
then
PROXY="http://squid.internal:3128"
else
PROXY=
fi
# Pull upstream image
if [ "$IS_DRY_RUN" = true ]
then
Expand Down

0 comments on commit 7e929f5

Please sign in to comment.