blob: 342bf851af8c033631d8fb18255c76b7fcb5a84e [file] [log] [blame]
#!/bin/bash
set -x -e
# Create and upload a container image for skiacorrectness the main Gold process.
APPNAME=gold-skiacorrectness
# 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_skiacorrectness ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ./build/skiacorrectness_k8s ${ROOT}/usr/local/bin/${APPNAME}
# Add the frontend assets.
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/skiacorrectness/dist
${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/skiacorrectness/dist
}
source ../bash/docker_build.sh