wip: use persistent volumes for portage, binpkgs
parent
b86d347683
commit
047b8e4914
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue