Adam Stankiewicz | 30c58d5 | 2020-07-22 15:34:40 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if ! command -v docker > /dev/null; then |
| 6 | echo "Please install docker from https://www.docker.com/products/docker-desktop" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | docker inspect bmcweb-base > /dev/null || |
| 11 | docker build --no-cache --force-rm -t bmcweb-base -f Dockerfile.base . |
| 12 | |
| 13 | docker build -t bmcweb . |
| 14 | |
| 15 | mkdir -p build |
| 16 | |
Ed Tanous | 2deeab5 | 2020-10-06 17:06:26 -0700 | [diff] [blame] | 17 | docker run -v "$PWD":/app -it bmcweb cp -r /build/bmcweb /build/webtest /app/build |