fix(smoke-test): add Colima-specific file sharing instructions
Detect if user is running Colima and provide appropriate fix instructions: - Check for colima command presence - If Colima detected: suggest virtiofs/sshfs mount options - Show colima.yaml mount configuration example - Include verification command: colima ssh -- ls ... Maintains Docker Desktop instructions for non-Colima users.
This commit is contained in:
parent
00f938861c
commit
d3a861063f
1 changed files with 17 additions and 4 deletions
|
|
@ -119,10 +119,23 @@ if [ "$env" = "dev" ]; then
|
|||
if ! docker run --rm -v "$repo_root/data/dev:/test-data:ro" alpine:3.19 ls /test-data >/dev/null 2>&1; then
|
||||
echo "ERROR: Docker cannot access $repo_root/data/dev"
|
||||
echo ""
|
||||
echo "This is a Docker Desktop file sharing issue. To fix:"
|
||||
echo "1. Open Docker Desktop -> Settings -> Resources -> File sharing"
|
||||
echo "2. Add or verify: $repo_root"
|
||||
echo "3. Click 'Apply & Restart'"
|
||||
if command -v colima >/dev/null 2>&1; then
|
||||
echo "You are using Colima. To fix:"
|
||||
echo "1. Stop Colima: colima stop"
|
||||
echo "2. Start with host mounts enabled: colima start --mount-type=virtiofs"
|
||||
echo " OR: colima start --mount-type=sshfs --mount-writable"
|
||||
echo "3. Verify the mount: colima ssh -- ls $repo_root/data/dev"
|
||||
echo ""
|
||||
echo "If using Colima template, ensure your ~/.colima/default/colima.yaml has:"
|
||||
echo " mounts:"
|
||||
echo " - location: $repo_root"
|
||||
echo " writable: true"
|
||||
else
|
||||
echo "This is a Docker Desktop file sharing issue. To fix:"
|
||||
echo "1. Open Docker Desktop -> Settings -> Resources -> File sharing"
|
||||
echo "2. Add or verify: $repo_root"
|
||||
echo "3. Click 'Apply & Restart'"
|
||||
fi
|
||||
echo ""
|
||||
echo "Alternatively, run: mkdir -p $repo_root/data/dev/{redis,minio,prometheus,grafana,loki,logs,experiments,active,workspaces}"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue