@@ -19,24 +19,28 @@ docker run --rm riscv-unified-db-test ruby --version
1919docker run --rm riscv-unified-db-test python3 --version
2020docker run --rm riscv-unified-db-test npm --version
2121
22- # Test 3: Check if we can install Python packages
23- echo " Test 3: Installing Python packages..."
24- docker run --rm -v $( pwd) :/workspace riscv-unified-db-test pip3 install --break-system-packages -r /workspace/ requirements.txt
22+ # Test 3: Check if we can install Python packages in a virtual environment
23+ echo " Test 3: Installing Python packages in virtual environment ..."
24+ docker run --rm -v $( pwd) :/workspace riscv-unified-db-test bash -c " cd /workspace && python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt"
2525
26- # Test 4: Check if we can install gems
27- echo " Test 4: Installing gems..."
26+ # Test 4: Check if we can install Python packages with --break-system-packages flag
27+ echo " Test 4: Installing Python packages with --break-system-packages flag..."
28+ docker run --rm -v $( pwd) :/workspace riscv-unified-db-test bash -c " cd /workspace && pip3 install --break-system-packages -r requirements.txt"
29+
30+ # Test 5: Check if we can install gems
31+ echo " Test 5: Installing gems..."
2832docker run --rm riscv-unified-db-test gem list bundler
2933
30- # Test 5 : Check if we can run rake tasks
31- echo " Test 5 : Running rake tasks..."
34+ # Test 6 : Check if we can run rake tasks
35+ echo " Test 6 : Running rake tasks..."
3236docker run --rm -v $( pwd) :/workspace riscv-unified-db-test rake --version
3337
34- # Test 6 : Check non-root user exists
35- echo " Test 6 : Checking non-root user..."
38+ # Test 7 : Check non-root user exists
39+ echo " Test 7 : Checking non-root user..."
3640docker run --rm riscv-unified-db-test id -u vscode
3741
38- # Test 7 : Proxy configuration test
39- echo " Test 7 : Checking proxy configuration..."
42+ # Test 8 : Proxy configuration test
43+ echo " Test 8 : Checking proxy configuration..."
4044if [ -n " $http_proxy " ] || [ -n " $https_proxy " ]; then
4145 echo " Proxy is configured: HTTP_PROXY=$http_proxy , HTTPS_PROXY=$https_proxy "
4246 # Test proxy connectivity if configured
4549 echo " No proxy configured"
4650fi
4751
48- echo " All container tests passed!"
52+ echo " All container tests passed!"
0 commit comments