Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Volodymyr SAVCHENKO
osa-docker
Commits
fa92a441
Verified
Commit
fa92a441
authored
Sep 17, 2018
by
Volodymyr SAVCHENKO
Browse files
auto-pull docker image
parent
cee0f937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
osa-docker.sh
osa-docker.sh
+11
-0
No files found.
osa-docker.sh
View file @
fa92a441
...
...
@@ -4,10 +4,21 @@
COMMAND
=
$@
echo
"OSA_DOCKER_IMAGE ==
${
OSA_DOCKER_IMAGE
:
=integralsw/osa
:11.0
}
"
echo
"OSA_DOCKER_PULL ==
\"
${
OSA_DOCKER_PULL
:
=yes
}
\"
"
[
"
$OSA_DOCKER_PULL
"
==
"yes"
]
&&
{
echo
"will update image (set OSA_DOCKER_PULL to anything but
\"
yes
\"
to stop this)"
docker pull
$OSA_DOCKER_IMAGE
}
echo
"."
echo
"."
echo
"REP_BASE_PROD:
${
REP_BASE_PROD
:?please
set this variable to the current data location
}
"
echo
"CURRENT_IC:
${
CURRENT_IC
:?please
set this variable to the current IC location (could be REP_BASE_PROD, but we would not like to assume...)
}
"
echo
"using WORKDIR:
${
WORKDIR
:
=
$PWD
}
"
for
directory
in
"
$REP_BASE_PROD
/scw"
"
$REP_BASE_PROD
/aux"
"
$CURRENT_IC
/ic"
"
$CURRENT_IC
/idx"
"
$WORKDIR
"
;
do
[
-d
$directory
]
||
{
echo
"directory
\"
$directory
\"
should exist"
;
exit
1
;
}
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment