Skip to content

Commit

Permalink
introduce DOCKER_PULL (default: true)
Browse files Browse the repository at this point in the history
If image in DOCKER_IMAGE has been created locally, docker pull would fail.
  • Loading branch information
mathias-luedtke committed May 20, 2018
1 parent 0333531 commit 2b93722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ Note that some of these currently tied only to a single option, but we still lea
* **CCACHE_DIR** (default: not set): If set, `ccache <https://en.wikipedia.org/wiki/Ccache>`_ gets enabled for your build to speed up the subsequent builds in the same job if anything. See `detail. <https://github.com/ros-industrial/industrial_ci/blob/master/doc/index.rst#cache-build-artifacts-to-speed-up-the-subsequent-builds-if-any>`_
* **DEBUG_BASH** (default: not set): If set with any value (e.g. `true`), all executed commands that are not printed by default to reduce print space will be printed.
* **DOCKER_BASE_IMAGE** (default: $OS_NAME:$OS_CODE_NAME): Base image used for building the CI image. Could be used to pre-bundle dependecies or to run tests for different architectures. See `this PR <https://github.com/ros-industrial/industrial_ci/pull/174>`_ for more info.
* **DOCKER_IMAGE** (default: not set): Selects a Docker images different from default one. Please note, this disables the handling of `ROS_REPOSITORY_PATH` and `ROS_DISTRO` as ROS needs already to be installed in the image.
* **DOCKER_FILE** (default: not set): Instead of pulling an images from the Docker hub, build it from the given path or URL. Please note, this disables the handling of `ROS_REPOSITORY_PATH` and `ROS_DISTRO`, they have to be set in the build file instead.
* **DOCKER_BUILD_OPTS** (default: not set): Used do specify additional build options for Docker.
* **DOCKER_FILE** (default: not set): Instead of pulling an images from the Docker hub, build it from the given path or URL. Please note, this disables the handling of `ROS_REPOSITORY_PATH` and `ROS_DISTRO`, they have to be set in the build file instead.
* **DOCKER_IMAGE** (default: not set): Selects a Docker images different from default one. Please note, this disables the handling of `ROS_REPOSITORY_PATH` and `ROS_DISTRO` as ROS needs already to be installed in the image.
* **DOCKER_PULL** (default: true): set to false if custom docker image should not be pulled, e.g. if it was created locally
* **DOCKER_RUN_OPTS** (default: not set): Used to specify additional run options for Docker.
* **EXPECT_EXIT_CODE** (default: 0): exit code must match this value for test to succeed
* **INJECT_QEMU** (default: not set): Inject static qemu emulator for cross-platform builds, e.g. `INJECT_QEMU=arm`. This requires to install `qemu-user-static` on the host. The emulated build might take much longer!
Expand Down
2 changes: 1 addition & 1 deletion industrial_ci/src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function ici_prepare_docker_image() {
fi
elif [ -z "$DOCKER_IMAGE" ]; then # image was not provided, use default
ici_build_default_docker_image
else
elif [ "$DOCKER_PULL" != false ]; then
docker pull "$DOCKER_IMAGE"
fi
ici_time_end # prepare_docker_image
Expand Down

0 comments on commit 2b93722

Please sign in to comment.