diff --git a/run-remote b/run-remote index 6c551d2..6a35c97 100755 --- a/run-remote +++ b/run-remote @@ -9,6 +9,12 @@ shift DIR="/tmp/docker-devtools/infrastructure/${IMAGE}" mkdir -p "${DIR}" +# Rebuild the docker image to make sure it's up to date. +( + cd "${IMAGE}" + ./build.sh +) + # Save the docker image, transfer it and the per-image run script to remote. docker save -o "${DIR}/image.tar" "${IMAGE}" cp "${IMAGE}/run.sh" "${DIR}"