Skip to content

Commit

Permalink
(CI) fix command to reproduce docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Dec 9, 2023
1 parent 265ba1d commit 3b04fbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci/build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@ fi
echo -e "\e[35;1m
This build can be reproduced locally using the following commands:
\`\`\`
tue-get install docker
cd ${TUE_DIR}
cd "'${TUE_DIR}'"
git checkout ${CI_COMMIT}
"'${TUE_DIR}'"/ci/build-docker-package.sh --image=${CI_DOCKER_IMAGE_NAME} --branch=${CI_BRANCH} --pullrequest=${CI_PULL_REQUEST} --commit=${CI_COMMIT} --push_image=${CI_DOCKER_PUSH_IMAGE} --registry=${CI_DOCKER_REGISTRY} --ref-name=${CI_REF_NAME} --platforms=${CI_DOCKER_PLATFORMS} --push_image=${CI_DOCKER_PUSH_IMAGE} --ros_version=${CI_ROS_VERSION} --ros_distro=${CI_ROS_DISTRO} --targets_repo=${CI_TARGETS_REPO} --base_image=${CI_DOCKER_BASE_IMAGE} --docker_file=${CI_DOCKER_FILE}${ADDITIONAL_ARGS_LOCAL_BUILD}
"'${TUE_DIR}'"/ci/build-docker-image.sh --image=${CI_DOCKER_IMAGE_NAME} --branch=${CI_BRANCH} --pull_request=${CI_PULL_REQUEST} --commit=${CI_COMMIT} --push_image=false --registry=${CI_DOCKER_REGISTRY} --ref-name=${CI_REF_NAME} --platforms=${CI_DOCKER_PLATFORMS} --push_image=${CI_DOCKER_PUSH_IMAGE} --ros_version=${CI_ROS_VERSION} --ros_distro=${CI_ROS_DISTRO} --targets_repo=${CI_TARGETS_REPO} --base_image=${CI_DOCKER_BASE_IMAGE} --docker_file=${CI_DOCKER_FILE}${ADDITIONAL_ARGS_LOCAL_BUILD}
\`\`\`
This command never pushes the docker image to the registry. You will need to alter the '--push_image' argument for that. This also requires you are logged in to the correct docker registry or provide the related arguments(--docker_login, --user and --password), so this script will login.
Optionally fix your compilation errors and re-run only the last command
\e[0m"

# Declare arrays for storing the constructed docker build arguments
Expand Down

0 comments on commit 3b04fbc

Please sign in to comment.