Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
f09ff803
Commit
f09ff803
authored
8 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #8475: Use LOFAR_TAG as default docker tag if none specified in softwareVersion key
parent
32a5215b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/Services/src/PipelineControl.py
+14
-2
14 additions, 2 deletions
MAC/Services/src/PipelineControl.py
with
14 additions
and
2 deletions
MAC/Services/src/PipelineControl.py
+
14
−
2
View file @
f09ff803
...
@@ -190,10 +190,22 @@ class Parset(dict):
...
@@ -190,10 +190,22 @@ class Parset(dict):
def
defaultDockerImage
():
def
defaultDockerImage
():
return
runCommand
(
"
docker-template
"
,
"
lofar-pipeline:${LOFAR_TAG}
"
)
return
runCommand
(
"
docker-template
"
,
"
lofar-pipeline:${LOFAR_TAG}
"
)
@staticmethod
def
defaultDockerTag
():
return
runCommand
(
"
docker-template
"
,
"
${LOFAR_TAG}
"
)
def
dockerImage
(
self
):
def
dockerImage
(
self
):
# Return the version set in the parset, and fall back to our own version.
# Return the version set in the parset, and fall back to our own version.
return
(
self
[
PARSET_PREFIX
+
"
Observation.ObservationControl.PythonControl.softwareVersion
"
]
or
image
=
self
[
PARSET_PREFIX
+
"
Observation.ObservationControl.PythonControl.softwareVersion
"
]
self
.
defaultDockerImage
())
if
not
image
:
return
self
.
defaultDockerImage
()
if
"
:
"
in
image
:
return
image
# Insert our tag by default
return
"
%s:%s
"
%
(
image
,
self
.
defaultDockerTag
())
def
otdbId
(
self
):
def
otdbId
(
self
):
return
int
(
self
[
PARSET_PREFIX
+
"
Observation.otdbID
"
])
return
int
(
self
[
PARSET_PREFIX
+
"
Observation.otdbID
"
])
...
...
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