Skip to content

Commit

Permalink
don't use gcsfuse
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Nov 29, 2023
1 parent e09cf09 commit 0e0e29e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/actions/build-push-kotsadm-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,13 @@ runs:
with:
project_id: ${{ inputs.chainguard-gcp-project-id }}

- name: setup packages gcsfuse
- name: setup packages
env:
BUCKET: replicated-apk-registry
shell: bash
run: |
# Install gcsfuse
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
echo "deb [signed-by=/usr/share/keyrings/cloud.google.asc] https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee /usr/share/keyrings/cloud.google.asc
sudo apt-get update -y
sudo apt-get install gcsfuse -y
# Set up a gcsfuse RO mount to the bucket containing private packages. This is a cheap and
# cheerful way to get access to objects we need, without having to fetch all of them.
mkdir -p /tmp/gcsfuse/apk-repo
gcsfuse -o ro --implicit-dirs --only-dir os ${BUCKET} /tmp/gcsfuse/apk-repo
# Symlink the gcsfuse mount to ./packages/$arch/*.apk
mkdir -p ./packages/x86_64
ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/
ln -s /tmp/gcsfuse/apk-repo/chainguard-enterprise.rsa.pub ./packages/
# Make a copy of the APKINDEX.* since we'll need to write to it on package builds
cp /tmp/gcsfuse/apk-repo/x86_64/APKINDEX.* ./packages/x86_64/
mkdir ./packages/
gsutil -m cp -R gs://replicated-apk-registry/os/ ./packages/
ls -lR ./packages/
- name: template melange and apko configs
Expand Down
1 change: 1 addition & 0 deletions deploy/apko.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ contents:
- ./packages/
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
- ./packages/chainguard-enterprise.rsa.pub
- ./melange.rsa.pub
packages:
- kotsadm-head # This is expected to be built locally by `melange`.
Expand Down

0 comments on commit 0e0e29e

Please sign in to comment.