File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,27 @@ jobs:
4545 uv venv --python 3.10
4646 uv pip install -r tests/requirements.txt
4747
48- - name : Check Docker can write on /tmp
48+ - name : Create local directory for volume mount
49+ run : |
50+ mkdir -p /tmp/test-volume
51+ chmod 777 /tmp/test-volume
52+ ls -la /tmp/test-volume
53+
54+ - name : Run Docker container with volume mount and write file
4955 run : |
5056 docker run --rm \
5157 -v /tmp/test-volume:/app/data \
5258 alpine:latest \
53- /bin/sh -c "echo 'Hello from Docker!' > /app/data/test.txt"
59+ /bin/sh -c "echo 'Hello from Docker!' > /app/data/test.txt && ls -la /app/data"
60+
61+ - name : Debug - List contents of /tmp
62+ run : ls -la /tmp
63+
64+ - name : Debug - List contents of /tmp/test-volume
65+ run : ls -la /tmp/test-volume
66+
67+ - name : Verify file was written to local volume
68+ run : |
5469 if [ -f /tmp/test-volume/test.txt ]; then
5570 echo "File exists in mounted volume"
5671 cat /tmp/test-volume/test.txt
You can’t perform that action at this time.
0 commit comments