blob: af863844bbe89c70ffc9ba2e99dfc27bbcfb7bd8 [file] [log] [blame]
#!/bin/bash
APPNAME=demoserver
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="install -D --verbose --backup=none"
INSTALL_DIR="install -d --verbose --backup=none"
${INSTALL} --mode=644 -T Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
# Resources for the main page.
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/
${INSTALL} --mode=755 ./dist/* ${ROOT}/usr/local/share/${APPNAME}/
# Demo pages. 'install' isn't recursive.
cp -r ./fetched_demos ${ROOT}/usr/local/share/${APPNAME}/demos
chmod -R a=rX,u=rwX ${ROOT}/usr/local/share/${APPNAME}/demos
}
source ../bash/docker_build.sh