| #!/bin/bash |
| |
| # Keep this in sync with fiddler_ci/Dockerfile. |
| APPNAME=fiddler |
| |
| 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 ${APPNAME}/Dockerfile ${ROOT}/Dockerfile |
| ${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME} |
| ${INSTALL} --mode=755 -T ./bin/fiddle_secwrap ${ROOT}/usr/local/bin/fiddle_secwrap |
| ${INSTALL} --mode=755 -T ./fiddler_restart.sh ${ROOT}/usr/local/bin/fiddler_restart.sh |
| # Note source is fiddle, not fiddler, to agree with the fiddle image. |
| ${INSTALL_DIR} --mode=755 ${ROOT}/etc/fiddle/source |
| ${INSTALL} --mode=644 ./source/* ${ROOT}/etc/fiddle/source |
| } |
| |
| source ../bash/docker_build.sh |