Spaces:
Running
Running
| # Test the complete build process locally | |
| # Clean up any existing test containers | |
| echo "Cleaning up any existing test containers..." | |
| docker stop omnisealbench-test 2>/dev/null || true | |
| docker rm omnisealbench-test 2>/dev/null || true | |
| echo "Building Docker image..." | |
| docker build -t omnisealbench-local . | |
| if [ $? -ne 0 ]; then | |
| echo "Docker build failed!" | |
| exit 1 | |
| fi | |
| echo "Running container..." | |
| docker run -d -p 5002:5000 --name omnisealbench-test omnisealbench-local | |
| if [ $? -ne 0 ]; then | |
| echo "Docker run failed!" | |
| exit 1 | |
| fi | |
| echo "Container started! Application should be available at:" | |
| echo "http://localhost:5002" | |
| echo "" | |
| echo "To see container logs, run:" | |
| echo "docker logs -f omnisealbench-test" | |
| echo "" | |
| echo "To stop and remove the container, run:" | |
| echo "docker stop omnisealbench-test && docker rm omnisealbench-test" | |