Skip to content
Snippets Groups Projects
Unverified Commit de96f540 authored by Marco Bartolini's avatar Marco Bartolini Committed by GitHub
Browse files

Merge pull request #90 from ska-telescope/ST-126

[ST-126]  change docker registry URI
parents 00430006 8cf8d674
No related branches found
No related tags found
No related merge requests found
# GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application. # GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application.
# Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml. # Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml.
# In this case we use the latest python docker image to build and test this project. # In this case we use the latest python docker image to build and test this project.
image: ska-registry.av.it.pt/ska-docker/tango-builder:latest image: nexus.engageska-portugal.pt/ska-docker/tango-builder:latest
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
...@@ -17,8 +17,8 @@ cache: ...@@ -17,8 +17,8 @@ cache:
# before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts. # before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts.
# This can be an array or a multi-line string. # This can be an array or a multi-line string.
before_script: before_script:
- docker login -u $DOCKER_REGISTRY_USER_LOGIN -p $CI_REGISTRY_PASS_LOGIN $CI_REGISTRY - docker login -u $DOCKER_REGISTRY_USER_LOGIN -p $CI_REGISTRY_PASS_LOGIN $CI_NX_REGISTRY
- pip install twine
# The YAML file defines a set of jobs with constraints stating when they should be run. # The YAML file defines a set of jobs with constraints stating when they should be run.
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always have to contain at least the script clause. # You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always have to contain at least the script clause.
...@@ -28,17 +28,20 @@ before_script: ...@@ -28,17 +28,20 @@ before_script:
stages: stages:
- pages - pages
pages: pages:
tags: tags:
- docker-executor - docker-executor
stage: pages stage: pages
variables:
TWINE_USERNAME: $TWINE_USERNAME
TWINE_PASSWORD: $TWINE_PASSWORD
script: script:
- make test - make test
- ls -la - ls -la
- mv build public - mv build public
- mv public/lmcbaseclasses_htmlcov/* public - mv public/lmcbaseclasses_htmlcov/* public
- make push - make push
- twine upload --repository-url $PYPI_REPOSITORY_URL dist_test/*
artifacts: artifacts:
paths: paths:
- public - public
# Use SKA python image as base image # Use SKA python image as base image
FROM ska-registry.av.it.pt/ska-docker/ska-python-buildenv:latest AS buildenv FROM nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest AS buildenv
FROM ska-registry.av.it.pt/ska-docker/ska-python-runtime:latest AS runtime FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:latest AS runtime
# create ipython profile to so that itango doesn't fail if ipython hasn't run yet # create ipython profile to so that itango doesn't fail if ipython hasn't run yet
RUN ipython profile create RUN ipython profile create
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
# #
# DOCKER_REGISTRY_HOST, DOCKER_REGISTRY_USER and PROJECT are combined to define # DOCKER_REGISTRY_HOST, DOCKER_REGISTRY_USER and PROJECT are combined to define
# the Docker tag for this project. The definition below inherits the standard # the Docker tag for this project. The definition below inherits the standard
# value for DOCKER_REGISTRY_HOST (=rska-registry.av.it.pt) and overwrites # value for DOCKER_REGISTRY_HOST (=rnexus.engageska-portugal.pt) and overwrites
# DOCKER_REGISTRY_USER and PROJECT to give a final Docker tag of # DOCKER_REGISTRY_USER and PROJECT to give a final Docker tag of
# ska-registry.av.it.pt/dishmaster/dishmaster # nexus.engageska-portugal.pt/dishmaster/dishmaster
# #
DOCKER_REGISTRY_USER:=tango-example DOCKER_REGISTRY_USER:=tango-example
PROJECT = lmcbaseclasses PROJECT = lmcbaseclasses
......
File added
...@@ -18,7 +18,7 @@ volumes: ...@@ -18,7 +18,7 @@ volumes:
services: services:
tangodb: tangodb:
image: ska-registry.av.it.pt/ska-docker/tango-db:latest image: nexus.engageska-portugal.pt/ska-docker/tango-db:latest
depends_on: depends_on:
- rsyslog-lmcbaseclasses - rsyslog-lmcbaseclasses
environment: environment:
...@@ -30,7 +30,7 @@ services: ...@@ -30,7 +30,7 @@ services:
- tangodb:/var/lib/mysql - tangodb:/var/lib/mysql
databaseds: databaseds:
image: ska-registry.av.it.pt/ska-docker/tango-cpp:latest image: nexus.engageska-portugal.pt/ska-docker/tango-cpp:latest
depends_on: depends_on:
- tangodb - tangodb
environment: environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment