Skip to content

Commit e50912b

Browse files
author
Chris Wiechmann
committed
Changing the way how the docker-image is pulled
1 parent 9d43485 commit e50912b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ before_install:
3030
#- sudo apt-get install curl
3131
# All files in this folder will be cached for the next build
3232
- mkdir -p $CACHE_DIR
33-
# Login to the Docker-Registry
34-
- if [ ! -f $CACHE_FILE_APIM ]; then docker login --username $AXWAY_DOCKER_REG_USER --password $AXWAY_DOCKER_REG_PASS docker-registry.demo.axway.com; fi
3533
# Downloading the APIM-Docker-Image takes too long (Timeout 10 minutes) - Externalized to make use of travis_wait
3634
# In this script, we are either using the cached version or download a new Docker-Image
37-
- travis_wait build/pull_apim_docker_image.sh $CACHE_FILE_APIM
35+
- travis_wait build/pull_apim_docker_image.sh
3836
# Now it's time to safe the downloaded API-Management Docker-Image into the cache folder
3937
- if [ ! -f $CACHE_FILE_APIM ]; then docker save $APIM_DOCKER_IMAGE | gzip > $CACHE_FILE_APIM; fi
4038
# Pull Cassandra Image or use the cache

build/pull_apim_docker_image.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/bin/sh
22

3+
set -x
4+
35
if [ -f $CACHE_FILE_APIM -a ! $SKIP_CACHE="true" ]
46
then
57
echo "Loading API-Manager docker image: $APIM_DOCKER_IMAGE from $CACHE_FILE_APIM"
68
gunzip -c $CACHE_FILE_APIM | docker load
79
else
810
echo "Pulling APIM docker from registry, this will take a while"
11+
docker login --username $AXWAY_DOCKER_REG_USER --password $AXWAY_DOCKER_REG_PASS docker-registry.demo.axway.com
912
docker pull $APIM_DOCKER_IMAGE
1013
fi

0 commit comments

Comments
 (0)