Compare commits
2 Commits
fd925c3da0
...
346c88a179
Author | SHA1 | Date |
---|---|---|
|
346c88a179 | |
|
5726d2b76f |
|
@ -13,6 +13,7 @@ spec:
|
|||
capabilities:
|
||||
add:
|
||||
- CAP_SETFCAP
|
||||
- CAP_SYS_CHROOT
|
||||
volumeMounts:
|
||||
- mountPath: /build
|
||||
name: workspace-volume
|
||||
|
@ -21,12 +22,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
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -f /var/db/repos/gentoo/metadata/timestamp ]; then
|
||||
emerge-webrsync
|
||||
fi
|
||||
if [ "$(find /var/db/repos/gentoo/metadata -newermt '-24 hours' | wc -l)" -eq 0 ]; then
|
||||
emaint sync
|
||||
fi
|
Loading…
Reference in New Issue