Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 1.31 KB

File metadata and controls

69 lines (55 loc) · 1.31 KB

Test Scripts

Quick Test

./scripts/test-quick.sh

Builds the Docker image and verifies all tools are installed.

Full Test

./scripts/test-local-build.sh

Builds the Docker image, verifies tools, and tests building zlib.wasm.

Troubleshooting

Network/DNS Issues During Build

If you encounter DNS resolution errors like:

Temporary failure resolving 'archive.ubuntu.com'

Option 1: Use Google DNS (standard docker build)

docker build --dns 8.8.8.8 --dns 8.8.4.4 -t wasm-builder:local .

Note: --dns flag does NOT work with docker buildx build. For buildx, use:

# Use host network (buildx)
docker buildx build --network=host -t wasm-builder:local .

# OR configure daemon permanently (see Option 2 below)

Option 2: Configure Docker daemon Edit /etc/docker/daemon.json:

{
  "dns": ["8.8.8.8", "8.8.4.4"]
}

Then restart Docker:

sudo systemctl restart docker

Option 3: Check network connectivity

# Test DNS resolution
ping archive.ubuntu.com

# Check Docker network
docker network ls
docker network inspect bridge

Permission Errors

If you get permission denied errors:

# Add user to docker group
sudo usermod -aG docker $USER
newgrp docker

# Or run with sudo
sudo ./scripts/test-local-build.sh