Give up on mount.
This commit is contained in:
@@ -22,12 +22,6 @@ spec:
|
|||||||
description: Includes credentials for the docker image registry.
|
description: Includes credentials for the docker image registry.
|
||||||
optional: true
|
optional: true
|
||||||
mountPath: /home/build/.docker
|
mountPath: /home/build/.docker
|
||||||
- name: buildah-storage
|
|
||||||
description: buildah's container storage.
|
|
||||||
optional: true
|
|
||||||
mountPath: /storage
|
|
||||||
# mountPath: /home/build/.local/share/containers
|
|
||||||
# mountPath: /foo
|
|
||||||
params:
|
params:
|
||||||
- name: OUTPUT
|
- name: OUTPUT
|
||||||
type: string
|
type: string
|
||||||
@@ -67,18 +61,6 @@ spec:
|
|||||||
- name: metadata-out
|
- name: metadata-out
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
steps:
|
steps:
|
||||||
# - name: set-permissions
|
|
||||||
# image: $(params.BUILDER_IMAGE)
|
|
||||||
# workingDir: "$(workspaces.source.path)"
|
|
||||||
# script: |
|
|
||||||
# #!/usr/bin/env sh
|
|
||||||
# set -euo pipefail
|
|
||||||
|
|
||||||
# # chown -R 1000:1000 /home/build/.local/share/containers
|
|
||||||
# securityContext:
|
|
||||||
# runAsNonRoot: false
|
|
||||||
# runAsUser: 0
|
|
||||||
# runAsGroup: 0
|
|
||||||
- name: write-config
|
- name: write-config
|
||||||
image: $(params.BUILDER_IMAGE)
|
image: $(params.BUILDER_IMAGE)
|
||||||
workingDir: "$(workspaces.source.path)"
|
workingDir: "$(workspaces.source.path)"
|
||||||
@@ -91,15 +73,6 @@ spec:
|
|||||||
tee /home/build/.config/containers/registries.conf <<EOF
|
tee /home/build/.config/containers/registries.conf <<EOF
|
||||||
$(params.REGISTRIES_CONF)
|
$(params.REGISTRIES_CONF)
|
||||||
EOF
|
EOF
|
||||||
tee > /home/build/.config/containers/storage.conf <<EOF
|
|
||||||
[storage]
|
|
||||||
driver = "overlay"
|
|
||||||
runroot = "/storage/run/containers/storage"
|
|
||||||
graphroot = "/storage/.local/share/containers/storage"
|
|
||||||
rootless_storage_path = "/storage/.local/share/containers/storage"
|
|
||||||
[storage.options]
|
|
||||||
pull_options = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > /home/build/.config/containers/entrypoint.sh <<EOF
|
cat > /home/build/.config/containers/entrypoint.sh <<EOF
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
@@ -113,13 +86,11 @@ spec:
|
|||||||
# ln -s $(workspaces.buildah-storage.path) /home/build/.local/share/containers/storage
|
# ln -s $(workspaces.buildah-storage.path) /home/build/.local/share/containers/storage
|
||||||
# ls -lR /home/build/.local/share/containers
|
# ls -lR /home/build/.local/share/containers
|
||||||
|
|
||||||
cp /home/build/.config/containers_mount/{registries.conf,storage.conf} /home/build/.config/containers/
|
cp /home/build/.config/containers_mount/registries.conf /home/build/.config/containers/
|
||||||
|
|
||||||
additional_args=(--source-date-epoch 100
|
additional_args=(--source-date-epoch 100
|
||||||
--layers
|
--layers
|
||||||
--storage-driver vfs
|
--storage-driver vfs)
|
||||||
--isolation=chroot
|
|
||||||
--cap-add=all)
|
|
||||||
|
|
||||||
if [ -n "\$(find /tekton/creds/.ssh -maxdepth 1 -name 'id_*' -print -quit)" ]; then
|
if [ -n "\$(find /tekton/creds/.ssh -maxdepth 1 -name 'id_*' -print -quit)" ]; then
|
||||||
eval \$(ssh-agent)
|
eval \$(ssh-agent)
|
||||||
|
|||||||
Reference in New Issue
Block a user