Skip to content

Commit 70ac5f6

Browse files
authored
Updated the wolfi-base-image build (#55)
* changed from wget to aws cli to pull packages from s3. Removed the mesa install script since mesa-libgallium is now available in wolfi. * fixed 1 linter problem in the dockerfile * add aws creds to the ci workflow * changed python version to just python-3.11 instead of a specific latest version
1 parent 6cf9571 commit 70ac5f6

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
password: ${{ secrets.QUAY_IO_ROBOT_TOKEN }}
4242
- name: Set up QEMU
4343
uses: docker/setup-qemu-action@v2
44+
- name: Configure AWS Credentials
45+
uses: aws-actions/configure-aws-credentials@v3
46+
with:
47+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
48+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
49+
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
4450
- name: Download APKs for chainguard/wolfi-base
4551
env:
4652
ARCH: ${{ matrix.architecture }}

dockerfiles/wolfi-base/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ COPY ./scripts/install-wolfi-tesseract.sh install-wolfi-tesseract.sh
66
COPY ./scripts/install-wolfi-mesa-gl.sh install-wolfi-mesa-gl.sh
77

88
USER root
9-
# NOTE(robinson) - the mesa-gl section is a temporary workaround to install mesa-gl 24.1.0 because
10-
# libgallum is missing in mesa-gl 24.2.0 from the wolfi package manager
119
RUN apk update && \
12-
apk add py3.11-pip glib cmake bash libmagic wget git openjpeg && \
13-
./install-wolfi-mesa-gl.sh && rm install-wolfi-mesa-gl.sh && \
10+
apk add python-3.11 python-3.11-base py3.11-pip glib \
11+
mesa-gl mesa-libgallium cmake bash libmagic wget git openjpeg && \
1412
apk add --allow-untrusted packages/pandoc-3.1.8-r0.apk && \
1513
apk add --allow-untrusted packages/poppler-23.09.0-r0.apk && \
1614
./install-wolfi-tesseract.sh && rm install-wolfi-tesseract.sh && \

scripts/build-base-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BUILD_REPO="${BUILD_REPO:-build-base-images}"
66
PIP_VERSION="${PIP_VERSION:-22.2.1}"
77
GITHUB_REF="${GITHUB_REF:-none}"
88
DOCKER_PLATFORM="${DOCKER_PLATFORM:-linux/amd64}"
9-
DOCKERFILE="${DOCKERFILE:-rocky9.2}"
9+
DOCKERFILE="${DOCKERFILE:-wolfi-base}"
1010
CI="${CI:-false}"
1111
SHORT_SHA="${SHORT_SHA:-$(git rev-parse --short HEAD)}"
1212

scripts/docker-dl-wolfi-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mkdir -p "${directory}"
2121

2222
for file in "${files[@]}"; do
2323
echo "Downloading ${file}"
24-
wget "https://utic-public-cf.s3.amazonaws.com/$file" -P "$directory"
24+
aws s3 cp "s3://utic-public-cf/$file" "$directory/"
2525
done
2626

2727
# NOTE(robinson) - renames the aarch64 specific APKs to replace -aarch.apk with .apk

0 commit comments

Comments
 (0)