14 lines
250 B
Bash
Executable File
14 lines
250 B
Bash
Executable File
#!/bin/bash
|
|
|
|
GIT_HASH=$(git rev-parse --short HEAD)
|
|
|
|
cp ../pyutils/utils.py ../upsmon/
|
|
cp ../pyutils/utils.py ../routermon/
|
|
|
|
docker compose build --build-arg BUILD_VER=${GIT_HASH}
|
|
|
|
rm ../upsmon/utils.py
|
|
rm ../routermon/utils.py
|
|
|
|
docker compose up -d
|