forked from gchq/stroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runProxyDocker.sh
executable file
·34 lines (26 loc) · 983 Bytes
/
runProxyDocker.sh
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
#!/bin/bash
set -e
main() {
local -r VOLUMES=( \
stroom-proxy_config \
stroom-proxy_content \
stroom-proxy_logs \
stroom-proxy_repo)
docker rm stroom-proxy || echo "No container to delete"
for volume in "${VOLUMES[@]}"; do
docker volume rm $"{volume}" || echo "Volume ${volume} doesn't exist to delete"
done
for volume in "${VOLUMES[@]}"; do
docker volume create "${volume}"
done
docker \
run --name stroom-proxy \
--mount source=stroom-proxy_config,target=/stroom-proxy/config/ \
--mount source=stroom-proxy_content,target=/stroom-proxy/content/ \
--mount source=stroom-proxy_logs,target=/stroom-proxy/logs/ \
--mount source=stroom-proxy_repo,target=/stroom-proxy/repo/ \
--publish 9090:9090 \
--publish 9091:9091 \
gchq/stroom-proxy:dev-SNAPSHOT
#gchq/stroom-proxy:dev-SNAPSHOT bash -c "cat /stroom-proxy/state/config.yml"
}