Skip to content
GitLab
Explore
Sign in
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
2478c231
Commit
2478c231
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
SW-966
: Deploy lofar-pulp with a docker tag equal to the branch or tag name.
parent
c301b0bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!634
WIP: COBALT commissioning delta
,
!501
SW-966: build lofar-pulp in gitlab CI
,
!481
Draft: SW-971 SW-973 SW-975: Various fixes to build LOFAR correctly.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-4
2 additions, 4 deletions
.gitlab-ci.yml
Docker/lofar-pulp/Dockerfile
+5
-0
5 additions, 0 deletions
Docker/lofar-pulp/Dockerfile
with
7 additions
and
4 deletions
.gitlab-ci.yml
+
2
−
4
View file @
2478c231
...
...
@@ -134,7 +134,7 @@ build_MCU_MAC:
build_lofar_pulp_docker_image
:
stage
:
build
script
:
-
docker build --build-arg BASE_VERSION=$CI_COMMIT_SHORT_SHA -t ci_lofar_pulp:$CI_COMMIT_SHORT_SHA Docker/lofar-pulp
-
docker build --build-arg BASE_VERSION=$CI_COMMIT_SHORT_SHA
--build-arg LOFAR_TAG=$CI_COMMIT_REF_NAME
-t ci_lofar_pulp:$CI_COMMIT_SHORT_SHA Docker/lofar-pulp
interruptible
:
true
needs
:
-
build_pulp_docker_image
...
...
@@ -414,10 +414,8 @@ deploy-PULP:
-
ssh-keyscan head.cep4.control.lofar >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
# notice we do NOT use 'lofar-pulp' as name here (yet)
# TODO: when the new pulp-image-via-gitlab-via-nexus-to-cep4 is done and working, then and only then rename it here to the widely used docker image name 'lofar-pulp'
-
ssh lofarsys@head.cep4.control.lofar "clush -S -P -w cpu[01-50] -w gpu[01-04] -w head[01-02] docker pull $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA"
-
ssh lofarsys@head.cep4.control.lofar "clush -S -P -w cpu[01-50] -w gpu[01-04] -w head[01-02] docker tag $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA
ci_
lofar
_
pulp:
latest
"
-
ssh lofarsys@head.cep4.control.lofar "clush -S -P -w cpu[01-50] -w gpu[01-04] -w head[01-02] docker tag $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA lofar
-
pulp:
$CI_COMMIT_REF_NAME
"
needs
:
-
dockerize_PULP
when
:
manual
This diff is collapsed.
Click to expand it.
Docker/lofar-pulp/Dockerfile
+
5
−
0
View file @
2478c231
...
...
@@ -70,6 +70,11 @@ RUN apt-get update && apt-get install -y liblog4cplus-dev libhdf5-dev libblitz0-
apt-get purge
-y
liblog4cplus-dev libhdf5-dev libblitz0-dev libunittest++-dev libxml++2.6-dev binutils-dev
&&
\
apt-get autoremove
-y
# The tag under which this image will be deployed
ARG
LOFAR_TAG=${BASE_VERSION}
ENV
LOFAR_TAG=${LOFAR_TAG}
COPY
["bashrc", "/opt/"]
COPY
["chuser.sh", "/usr/local/bin"]
ENTRYPOINT
["/usr/local/bin/chuser.sh"]
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