-
Notifications
You must be signed in to change notification settings - Fork 160
/
minishift-pull-images.sh
executable file
·43 lines (38 loc) · 1.3 KB
/
minishift-pull-images.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
###############################################################################
# Copyright (c) 2018, 2022 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Eurotech- initial API and implementation
###############################################################################
#
# This script pulls Docker images from a Docker registry
#
DOCKER_ACCOUNT=${DOCKER_ACCOUNT:=kapua}
IMAGE_VERSION=${IMAGE_VERSION:=1.6.11-SNAPSHOT}
SERVICES=("console" "api" "sql" "broker" "events-broker")
echo "Pulling Kapua images..."
(
for SERVICE in ${SERVICES[@]}; do
echo "kapua-${SERVICE}:${IMAGE_VERSION}"
docker pull ${DOCKER_ACCOUNT}/kapua-${SERVICE}:${IMAGE_VERSION} &> /dev/null ||
{
echo " Cannot pull image: kapua-${SERVICE}:${IMAGE_VERSION}"
echo " Perhaps it is not present in the Docker registry?"
echo ""
exit 1
}
done
echo "Pulling Kapua images... DONE!"
echo ""
) ||
{
echo "Pulling Kapua images... FAILED!"
exit 1;
}