blob: 50f8e356f9da83807836b39fbdd4104aae6b0c54 [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}/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 ./out/test_machine_monitor ${ROOT}/usr/bin/test_machine_monitor
${INSTALL} --mode=755 -T ${IMAGE}/sudo ${ROOT}/usr/bin/sudo
# Run the following command if /usr/bin/qemu-arm-static is not found:
# sudo apt install qemu-user-static
${INSTALL} --mode=755 -T /usr/bin/qemu-arm-static ${ROOT}/usr/bin/qemu-arm-static
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/
}
source ../bash/docker_build.sh