| #!/bin/bash |
| # Builds and uploads a debian package for leasing. |
| APPNAME=leasing |
| |
| set -x -e |
| |
| # Copy files into the right locations in ${ROOT}. |
| copy_release_files() |
| { |
| ${INSTALL} --mode=644 -T Dockerfile ${ROOT}/Dockerfile |
| ${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/${APPNAME} |
| ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/isolates |
| ${INSTALL} --mode=644 ./isolates/* ${ROOT}/usr/local/share/${APPNAME}/isolates |
| ${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/${APPNAME} |
| } |
| |
| source ../bash/docker_build.sh |