-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 1.06 KB
/
Makefile
File metadata and controls
34 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
build:
docker build . --no-cache --file Dockerfile --tag fmidev/smartmetserver:latest --no-cache
test:
docker rm -f test 2>/dev/null || true
docker run --name test --rm -p 127.0.0.1:8080:8080 fmidev/smartmetserver:latest &> debug.log &
# Wait for the server to start
sleep 45s
# Check if the server is running
curl -f "http://localhost:8080/wms?request=getCapabilities&service=WMS" || exit 1
docker stop test
clean:
-docker image rm -f fmidev/smartmetserver
-docker image prune -f
rm -f debug.log
build-rocky10:
docker build . --no-cache --file Dockerfile.rocky10 --tag fmidev/smartmetserver-rocky10:latest --no-cache
test-rocky10:
docker rm -f test10 2>/dev/null || true
docker run --name test10 --rm -p 127.0.0.1:8080:8080 fmidev/smartmetserver-rocky10:latest &> debug10.log &
# Wait for the server to start
sleep 45s
# Check if the server is running
curl -f "http://localhost:8080/wms?request=getCapabilities&service=WMS" || exit 1
docker stop test10
clean-rocky10:
-docker image rm -f fmidev/smartmetserver-rocky10
-docker image prune -f
rm -f debug10.log