Hi,
I am new to copa. Since my environment is an airgapped environment, I prepared a custom tooling image which apt sources points to my private registry and updated source-policy.json to use my custom images.
When i patch an image, copa first installed busybox via apt-get using my private registry successfully. But then busybox tried to use public debian repositories again and failed because of the airgapped environment.
Any idea why it fails?
#6 mkdir /copa-out
#6 CACHED
#7 copy /bin/busybox /bin/busybox
#7 CACHED
#8 /bin/busybox sh -c
status="$DPKG_STATUS_IS_UNKNOWN"
if [ -f "$DPKG_STATUS_PATH" ]; then
status="$DPKG_STATUS_IS_FILE"
cp "$DPKG_STATUS_PATH" "$RESULTS_PATH"
elif [ -d "$DPKG_STATUS_FOLDER" ]; then
status="$DPKG_STATUS_IS_DIRECTORY"
ls -1 "$DPKG_STATUS_FOLDER" > "$RESULT_STATUSD_PATH"
mv "$DPKG_STATUS_FOLDER"/* "$RESULTS_PATH"
fi
echo -n "$status" > "${RESULTS_PATH}/${STATUSD_OUTPUT_FILENAME}"
#8 CACHED
#3 docker-image://my.image.registry/imagename:imagetag
#3 CACHED
#9 Updating package database
#9 0.252 Ign:1 http://deb.debian.org/debian bookworm InRelease
#9 0.343 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#9 0.436 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#9 1.348 Ign:1 http://deb.debian.org/debian bookworm InRelease
#9 1.441 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#9 1.596 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#9 3.505 Ign:1 http://deb.debian.org/debian bookworm InRelease
#9 3.601 Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
#9 3.699 Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
#9 7.607 Err:1 http://deb.debian.org/debian bookworm InRelease
#9 7.607 Connection failed [IP: 146.75.122.132 80]
#9 7.716 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#9 7.716 Connection failed [IP: 146.75.122.132 80]
#9 7.816 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#9 7.816 Connection failed [IP: 146.75.122.132 80]
#9 7.819 Reading package lists...
#9 7.828 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Connection failed [IP: 146.75.122.132 80]
#9 7.828 W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Connection failed [IP: 146.75.122.132 80]
#9 7.828 W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Connection failed [IP: 146.75.122.132 80]
#9 7.828 W: Some index files failed to download. They have been ignored, or old ones used instead.
#9 DONE 7.8s
#10 Checking for available updates
#10 ERROR: process "sh -c apt-get -s upgrade 2>/dev/null | grep -q ^Inst || exit 1" did not complete successfully: exit code: 1
Hi,
I am new to copa. Since my environment is an airgapped environment, I prepared a custom tooling image which apt sources points to my private registry and updated source-policy.json to use my custom images.
When i patch an image, copa first installed busybox via apt-get using my private registry successfully. But then busybox tried to use public debian repositories again and failed because of the airgapped environment.
Any idea why it fails?