| #!/bin/bash |
| |
| set -x -e |
| |
| # Create and upload a container image for a server that computes the diff metrics. |
| APPNAME=gold-diffcalculator |
| |
| # Copy files into the right locations in ${ROOT}. |
| copy_release_files() |
| { |
| INSTALL="install -D --verbose --backup=none" |
| INSTALL_DIR="install -d --verbose --backup=none" |
| |
| # Add the dockerfile and binary. |
| ${INSTALL} --mode=644 -T ./dockerfiles/Dockerfile_diffcalculator ${ROOT}/Dockerfile |
| ${INSTALL} --mode=755 -T ./build/diffcalculator_k8s ${ROOT}/usr/local/bin/${APPNAME} |
| } |
| |
| source ../bash/docker_build.sh |