Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
03087c43
Commit
03087c43
authored
1 year ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
add network option
parent
550edcb7
No related branches found
No related tags found
5 merge requests
!752
Resolve L2SS-1525 "Migrate minio"
,
!751
Resolve L2SS-1340 "Deploy monitoring to nomad"
,
!750
Resolve L2SS-1341 "Migrate tango2nomad"
,
!749
Resolve L2SS-1342 "Migrate jupyter"
,
!710
L2SS-1341: Migrate tango to nomad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dsconfig.sh
+11
-3
11 additions, 3 deletions
sbin/dsconfig.sh
with
11 additions
and
3 deletions
sbin/dsconfig.sh
+
11
−
3
View file @
03087c43
...
@@ -4,15 +4,18 @@
...
@@ -4,15 +4,18 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
#
#
# defaults
network
=
"station"
# list of arguments expected in the input
# list of arguments expected in the input
optstring_long
=
"help,load,update,dump"
optstring_long
=
"help,load,update,dump
,file,network::
"
optstring
=
"hlud"
optstring
=
"hlud
f:n::
"
options
=
$(
getopt
-l
${
optstring_long
}
-o
${
optstring
}
--
"
$@
"
)
options
=
$(
getopt
-l
${
optstring_long
}
-o
${
optstring
}
--
"
$@
"
)
eval set
--
"
$options
"
eval set
--
"
$options
"
while
true
;
do
while
true
;
do
case
${
1
}
in
case
${
1
}
in
-h
|
--help
)
-h
|
--help
)
...
@@ -31,6 +34,10 @@ while true; do
...
@@ -31,6 +34,10 @@ while true; do
echo
"Dump config"
echo
"Dump config"
action
=
"dump"
action
=
"dump"
;;
;;
-n
|
--network
)
shift
network
=
"
$1
"
;;
--
)
--
)
shift
shift
break
;;
break
;;
...
@@ -42,7 +49,8 @@ if [ -z "$TAG" ]; then
...
@@ -42,7 +49,8 @@ if [ -z "$TAG" ]; then
TAG
=
"latest"
TAG
=
"latest"
fi
fi
docker_args
=(
run
--rm
-e
"TANGO_HOST=
$TANGO_HOST
"
--network
=
station
-i
)
echo
"Use docker network '
$network
'"
docker_args
=(
run
--rm
-e
"TANGO_HOST=
$TANGO_HOST
"
--network
=
"
$network
"
-i
)
docker_image
=
"git.astron.nl:5000/lofar2.0/tango/dsconfig:
$TAG
"
docker_image
=
"git.astron.nl:5000/lofar2.0/tango/dsconfig:
$TAG
"
if
[[
-n
"
$DNS
"
]]
;
then
if
[[
-n
"
$DNS
"
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment