blob: 092ef5bb49d887c140d72b4a1d544d6c3bdf13b0 [file] [log] [blame]
#!/bin/bash
set -x -e
APPNAME=podwatcher
IMAGE=$(dirname "$0")
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="install -D --verbose --backup=none"
# Add the dockerfile and binary.
${INSTALL} --mode=644 -T ${IMAGE}/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/podwatcher ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/
${INSTALL} --mode=644 ../machine/configs/* ${ROOT}/usr/local/share/${APPNAME}/
}
source ../bash/docker_build.sh