File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,9 +80,14 @@ steps:
8080 displayName: 'Download utPLSQL'
8181
8282 - bash : |
83- docker login -u $(DOCKER_USER) -p $(DOCKER_PASSWORD)
84- # download Oracle Database docker image from private repo and start the DB
85- time docker pull ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
83+ if [[ -f "$(CACHE_DIR)/${ORACLE_VERSION}.img" ]]; then
84+ time docker load -i $(CACHE_DIR)/${ORACLE_VERSION}.img
85+ else
86+ docker login -u $(DOCKER_USER) -p $(DOCKER_PASSWORD)
87+ # download Oracle Database docker image from private repo and start the DB
88+ time docker pull ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
89+ time docker save ${DOCKHER_HUB_REPO}:${ORACLE_VERSION} -o $(CACHE_DIR)/${ORACLE_VERSION}.img
90+ fi
8691 # start the docker container (DB)
8792 time docker run -d --name ${ORACLE_VERSION} ${DOCKER_OPTIONS} -p 1521:1521 ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}
8893 # Wait for DB startup
You can’t perform that action at this time.
0 commit comments