Skip to content

Commit

Permalink
fix: check that docker is installed (elastic#19214)
Browse files Browse the repository at this point in the history
* fix: check that docker is installed

* Update .ci/packer_cache.sh
  • Loading branch information
kuisathaverat authored and melchiormoulin committed Oct 14, 2020
1 parent 70f3bb9 commit 3b87cb3
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,18 @@ docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-ppc
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-s390x
golang:${GO_VERSION}
"
if [ -x "$(command -v docker)" ]; then
for image in ${DOCKER_IMAGES}
do
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue"
done

for image in ${DOCKER_IMAGES}
do
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue"
done

docker tag \
docker.elastic.co/observability-ci/database-instantclient:12.2.0.1 \
store/oracle/database-instantclient:12.2.0.1 \
|| echo "Error setting the Oracle Instant Client tag"
docker tag \
docker.elastic.co/observability-ci/database-enterprise:12.2.0.1 \
store/oracle/database-enterprise:12.2.0.1 \
|| echo "Error setting the Oracle Dtabase tag"
docker tag \
docker.elastic.co/observability-ci/database-instantclient:12.2.0.1 \
store/oracle/database-instantclient:12.2.0.1 \
|| echo "Error setting the Oracle Instant Client tag"
docker tag \
docker.elastic.co/observability-ci/database-enterprise:12.2.0.1 \
store/oracle/database-enterprise:12.2.0.1 \
|| echo "Error setting the Oracle Dtabase tag"
fi

0 comments on commit 3b87cb3

Please sign in to comment.