Skip to content

Commit c1eeed4

Browse files
committed
workflow: mount keys dir into coco-keyprovider container
The coco-keyprovider container receives the encryption key path via gRPC from skopeo, but runs in its own filesystem namespace and cannot see the host's files. Mount the keys directory into the container at the same absolute path so the keyprovider can read the key file. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com> Made-with: Cursor
1 parent 4749a73 commit c1eeed4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-test-containers.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ jobs:
7575
7676
- name: Start coco-keyprovider
7777
run: |
78-
docker run -d --rm --network host --name coco-keyprovider coco-keyprovider
78+
KEYS_DIR="${{ github.workspace }}/container-images/keys"
79+
docker run -d --rm --network host --name coco-keyprovider \
80+
-v "${KEYS_DIR}:${KEYS_DIR}:ro" \
81+
coco-keyprovider
7982
echo "Waiting for coco-keyprovider on localhost:50000"
8083
timeout 30 bash -c 'until nc -z localhost 50000; do sleep 1; done'
8184
echo "coco-keyprovider is ready"

0 commit comments

Comments
 (0)