blob: e8f9b0c8ff02625aefc14eb0e2d40ca95b3eb8e1 [file] [log] [blame]
#!/bin/bash
set -x -e
APPNAME=rpi-swarming-client
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}/bootstrap.py ${ROOT}/opt/swarming/bootstrap.py
${INSTALL} --mode=644 -T ${IMAGE}/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=644 -T ${IMAGE}/oauth2_access_token_config.json ${ROOT}/etc/swarming_config/oauth2_access_token_config.json
${INSTALL} --mode=755 -T ${IMAGE}/start_swarming ${ROOT}/start_swarming
${INSTALL} --mode=755 -T ./out/bot_config ${ROOT}/usr/bin/bot_config
${INSTALL} --mode=755 -T ${IMAGE}/sudo ${ROOT}/usr/bin/sudo
${INSTALL} --mode=755 -T /usr/bin/qemu-arm-static ${ROOT}/usr/bin/qemu-arm-static
}
source ../bash/docker_build.sh