Skip to content
Snippets Groups Projects
Commit c844dd6b authored by Muthukrishnanmatriot's avatar Muthukrishnanmatriot
Browse files

Merge branch 'master' into TMSS-847

parents af264e9c acc8a0d5
No related branches found
No related tags found
2 merge requests!634WIP: COBALT commissioning delta,!548Resolve TMSS-847
...@@ -207,16 +207,18 @@ build_ST_MAC: ...@@ -207,16 +207,18 @@ build_ST_MAC:
paths: paths:
- build/gnucxx11_opt - build/gnucxx11_opt
build_lofar_pulp_docker_image: build_lofar_pulp_docker_image:
stage: build stage: build
script: script:
- docker build -t ci_pulp:$CI_COMMIT_SHORT_SHA Docker/pulp-base - docker build -t ci_pulp:$CI_COMMIT_SHORT_SHA Docker/pulp-base
- 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 - 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
- docker login -u $CI_NEXUS_REGISTRY_USERNAME -p $CI_NEXUS_REGISTRY_PASSWORD $CI_NEXUS_REGISTRY
- docker tag ci_lofar_pulp:$CI_COMMIT_SHORT_SHA $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA
- docker push $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA
- docker logout $CI_NEXUS_REGISTRY
interruptible: true interruptible: true
when: manual # pulp docker images take a long time to build. It does not/hardly depend on currently developed lofar code. So an automatic build for each lofar commit is not needed. when: manual # pulp docker images take a long time to build. It does not/hardly depend on currently developed lofar code. So an automatic build for each lofar commit is not needed.
# #
# UNIT TEST STAGE # UNIT TEST STAGE
# #
...@@ -347,23 +349,6 @@ dockerize_TMSS: ...@@ -347,23 +349,6 @@ dockerize_TMSS:
- job: build_SCU - job: build_SCU
artifacts: true artifacts: true
dockerize_PULP:
# The dockerize step is meant to create small images ready for production with marginal overhead.
# For PULP we don't know (yet) what we can and cannot extract/remove from the ci_lofar_pulp image
# Therefor - for the time being - we just upload the full ci_lofar_pulp image to nexus, making it ready for deployment
stage: dockerize
allow_failure: true
script:
- docker login -u $CI_NEXUS_REGISTRY_USERNAME -p $CI_NEXUS_REGISTRY_PASSWORD $CI_NEXUS_REGISTRY
- docker tag ci_lofar_pulp:$CI_COMMIT_SHORT_SHA $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA
- docker push $CI_NEXUS_REGISTRY_LOCATION/ci_lofar_pulp:$CI_COMMIT_SHORT_SHA
- docker logout $CI_NEXUS_REGISTRY
interruptible: true
needs:
- job: build_lofar_pulp_docker_image
artifacts: true
# #
# INTEGRATION TEST STAGE # INTEGRATION TEST STAGE
# #
...@@ -606,7 +591,6 @@ deploy-CCU_MAC-prod: ...@@ -606,7 +591,6 @@ deploy-CCU_MAC-prod:
allow_failure: true allow_failure: true
when: manual when: manual
deploy-PULP-prod: deploy-PULP-prod:
stage: deploy-prod stage: deploy-prod
before_script: before_script:
...@@ -623,7 +607,7 @@ deploy-PULP-prod: ...@@ -623,7 +607,7 @@ deploy-PULP-prod:
# the pulp pipeline is built to be run as lofar-pulp:$CI_COMMIT_REF_NAME through setting the LOFAR_TAG in build_lofar_pulp_docker_image # the pulp pipeline is built to be run as lofar-pulp:$CI_COMMIT_REF_NAME through setting the LOFAR_TAG in build_lofar_pulp_docker_image
- 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" - 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: needs:
- dockerize_PULP - build_lofar_pulp_docker_image
when: manual when: manual
only: only:
- tags - tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment