Skip to content

Commit 232fcb1

Browse files
authored
Merge pull request #12 from solutionDrive/add-pull-parameter
Added a pull parameter to be able to pull the newest images
2 parents 76a1f4e + ee4e5ee commit 232fcb1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ To be sure that you have the latest version of the (base) containers you can for
112112

113113
vendor/bin/sdTest.sh build --no-cache --pull
114114

115+
To be sure to use the newest containers (not only build based containers):
116+
117+
vendor/bin/sdTest.sh pull
118+
115119
To destroy and restart your containers in one step without rebuilding images run:
116120

117121
vendor/bin/sdTest.sh reset

bin/sdTest.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ function remove_container {
106106
docker_compose_cmd rm -v $@
107107
}
108108

109+
function pull_container {
110+
docker_compose_cmd pull $@
111+
}
112+
109113
function get_logs {
110114
docker_compose_cmd logs $@
111115
}
@@ -161,11 +165,15 @@ case "$1" in
161165
shift
162166
remove_container $@
163167
;;
168+
pull)
169+
shift
170+
pull_container $@
171+
;;
164172
log|logs)
165173
shift
166174
get_logs $@
167175
;;
168176
*)
169-
echo "usage: init/start/stop/run/restart/build/reset/remove/logs"
177+
echo "usage: init/start/stop/run/restart/build/reset/remove/pull/logs"
170178
;;
171179
esac

0 commit comments

Comments
 (0)