#!/bin/bash # Contributions to this work were made on behalf of the GÉANT project, a # project that has received funding from the European Union’s Horizon 2020 # research and innovation programme under Grant Agreement No. 731122 (GN4-2). # On behalf of the GÉANT project, GEANT Association is the sole owner of the # copyright in all material which was developed by a member of the GÉANT # project. GÉANT Vereniging (Association) is registered with the Chamber of # Commerce in Amsterdam with registration number 40535155 and operates in the # UK as a branch of GÉANT Vereniging. # Registered office: Hoekenrode 3, 1102BR Amsterdam, The Netherlands. # UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK # License: please refer to the 'LICENCE' file in the file structure # © 2017-2018 GÉANT Association on behalf of the GÉANT Projects funded by EU; and others # Validating input if [ -z "$1" ]; then echo Please specify docker service name as param 1. exit 1 fi if [ -z "$2" ]; then echo You can optionally specify a tag name for docker image as param 2. else # Setting an environment variable export $1_version=$2 fi set -x # Updating that single service ./docker-compose.sh up -d --force-recreate --no-deps $1