12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: guix-copy
- annotations:
- # Setting spec.force to true will make Flux recreate the Job when any
- # immutable field is changed, forcing the Job to run every time the
- # container image tag changes.
- kustomize.toolkit.fluxcd.io/force: enabled
- spec:
- backoffLimit: 0
- template:
- spec:
- hostNetwork: true
- hostPID: true
- restartPolicy: Never
- containers:
- - command:
- - nsenter
- - --target
- - "1"
- - --mount
- - --uts
- - --ipc
- - --net
- - --pid
- - --no-fork
- - /bin/sh
- - -l
- - -c
- - sudo --user=oleg --login bash -ic 'guix copy --from=guix.wugi.info /gnu/store/17rgqqf2p72n5kshqkc6hb1pfnd4944s-guile-git-0.7.0 /gnu/store/glz755hzjdd7l0r986svp9c7j927hvg1-guix-1.4.0-20.37719d3 /gnu/store/51piaq70zzpsr2inpjlcpr44fgfrc50i-qemu-8.2.2'
- image: docker-registry.wugi.info/library/util-linux-with-udev
- name: refresh
- resources:
- limits:
- cpu: 14000m
- memory: 4096Mi
- requests:
- cpu: 1000m
- memory: 512Mi
- securityContext:
- privileged: true
|