Skip to content

Commit

Permalink
Make test mounts read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Jan 22, 2025
1 parent 81424ce commit bb5539b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
16 changes: 8 additions & 8 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ print('PASS: venv versions')
EOF

docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--env R8_CUDA_VERSION=12.4 \
--env R8_CUDNN_VERSION=9 \
--env R8_PYTHON_VERSION=3.12 \
Expand All @@ -130,8 +130,8 @@ print('PASS: venv versions')
EOF

docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--env R8_PYTHON_VERSION=3.12 \
--env R8_TORCH_VERSION=2.4.1 \
monobase:latest \
Expand All @@ -152,8 +152,8 @@ print('PASS: venv versions')
EOF

docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--env R8_CUDA_VERSION=12.4 \
--env R8_CUDNN_VERSION=9 \
--env R8_PYTHON_VERSION=3.12 \
Expand All @@ -172,8 +172,8 @@ assert cog.__version__ == '0.11.3', f'cog.__version__ is not 0.11.3: {cog.__vers
print('PASS: Pre-installed cog==0.11.3')
EOF
docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--env R8_COG_VERSION=0.11.3 \
--env R8_CUDA_VERSION=12.4 \
--env R8_CUDNN_VERSION=9 \
Expand Down
18 changes: 8 additions & 10 deletions script/test-mini
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ docker run --rm \
--env R8_PYTHON_VERSION=3.12 \
--env R8_TORCH_VERSION=2.4.1 \
--env CI_SKIP_CUDA=1 \
--volume "$PWD/requirements-user.txt:/tmp/requirements-user.txt" \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/requirements-user.txt:/tmp/requirements-user.txt:ro" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/build/cache:/var/cache/monobase" \
--volume "$PWD/build/root:/root" \
monobase:latest \
/opt/r8/monobase/run.sh \
monobase.build \
Expand All @@ -39,10 +38,9 @@ docker run --rm \
--env R8_PYTHON_VERSION=3.12 \
--env R8_TORCH_VERSION=2.4.1 \
--env CI_SKIP_CUDA=1 \
--volume "$PWD/requirements-user.txt:/tmp/requirements-user.txt" \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/requirements-user.txt:/tmp/requirements-user.txt:ro" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/build/cache:/var/cache/monobase" \
--volume "$PWD/build/root:/root" \
monobase:latest \
/opt/r8/monobase/run.sh \
Expand Down Expand Up @@ -123,8 +121,8 @@ print('PASS: venv versions')
EOF

docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--volume "$PWD/build/root:/root" \
--env R8_COG_VERSION=0.11.3 \
--env R8_CUDA_VERSION=12.4 \
Expand All @@ -141,8 +139,8 @@ print('PASS: user venv')
EOF

docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase" \
--volume "$PWD/build/monobase:/srv/r8/monobase" \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--volume "$PWD/build/root:/root" \
--env R8_COG_VERSION=0.11.3 \
--env R8_CUDA_VERSION=12.4 \
Expand Down

0 comments on commit bb5539b

Please sign in to comment.