wip: use persistent volumes for portage, binpkgs
dustin/photoframe2/pipeline/pr-dev/ci There was a failure building this commit Details

Dustin 2024-12-22 20:29:33 -06:00
parent b86d347683
commit 9c9a301f7f
2 changed files with 18 additions and 4 deletions

View File

@ -21,12 +21,21 @@ spec:
name: workspace-volume
subPath: gentoo
- mountPath: /usr/aarch64-unknown-linux-gnu/var/cache/binpkgs
name: workspace-volume
subPath: binpkgs
name: binpkgs
subPath: photoframe2
- mountPath: /var/cache/binpkgs
name: workspace-volume
subPath: binpkgs
name: binpkgs
subPath: photoframe2
- mountPath: /var/cache/distfiles
name: workspace-volume
subPath: distfiles
- mountPath: /var/db/repos/gentoo
name: portage
hostUsers: false
volumes:
- name: binpkgs
persistentVolumeClaim:
claimName: binpkgs
- name: portage
persistentVolumeClaim:
claimName: portage

View File

@ -1,5 +1,10 @@
#!/bin/sh
if [ ! -f /var/db/repos/gentoo/metadata/timestamp ]; then
emerge-webrsync
else
emaint sync
fi
mkdir -p /etc/portage/package.use
mkdir -p /etc/portage/make.conf