18 lines
488 B
Bash
Executable File
18 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
GIT_HASH=$(git rev-parse --short HEAD)
|
|
|
|
docker-compose down
|
|
|
|
echo "Building UPSmon"
|
|
cp ../pyutils/utils.py ../upsmon/
|
|
docker build --build-arg BUILD_VER=${GIT_HASH} -f ../upsmon/upsmon.Dockerfile -t upsmon:influx3 ../upsmon
|
|
rm ../upsmon/utils.py
|
|
|
|
echo "Building Routermon"
|
|
cp ../pyutils/utils.py ../routermon/
|
|
docker build --build-arg BUILD_VER=${GIT_HASH} -f ../routermon/routermon.Dockerfile -t routermon:influx3 ../routermon
|
|
rm ../routermon/utils.py
|
|
|
|
docker-compose up -d
|