Mercurial > public > ssdt-docker
comparison scripts/.functions.sh @ 157:018f62da1931
DEP-12: add docker version. prevent pulling updates for dangling images
author | smith@nwoca.org |
---|---|
date | Mon, 31 Jul 2017 20:49:53 +0100 |
parents | 249ec634da33 |
children | 1a8087653f2a |
comparison
equal
deleted
inserted
replaced
156:2f794158e9e8 | 157:018f62da1931 |
---|---|
8 if [ "$SSDT_HOME" == "" ] | 8 if [ "$SSDT_HOME" == "" ] |
9 then | 9 then |
10 export SSDT_SCRIPTS=$(getScriptDir) | 10 export SSDT_SCRIPTS=$(getScriptDir) |
11 export SSDT_HOME=$(dirname $SSDT_SCRIPTS) | 11 export SSDT_HOME=$(dirname $SSDT_SCRIPTS) |
12 fi | 12 fi |
13 | |
14 export SSDT_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}') | |
13 | 15 |
14 # deletes psql data from specified service | 16 # deletes psql data from specified service |
15 resetDbVolume() { | 17 resetDbVolume() { |
16 # Works for named and unnamed volumes and custom $PGDATA. | 18 # Works for named and unnamed volumes and custom $PGDATA. |
17 # Container must be stopped | 19 # Container must be stopped |