fix(ci): changing the Docker Hub account to push to
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -26,6 +26,9 @@ def nodeExecutor = params.nodeExecutor
|
|||||||
// Name of the phone resource
|
// Name of the phone resource
|
||||||
def ciServerResource = params.serverResource
|
def ciServerResource = params.serverResource
|
||||||
|
|
||||||
|
// Docker Hub account to push to
|
||||||
|
def DH_Account = "oaisoftwarealliance"
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label nodeExecutor
|
label nodeExecutor
|
||||||
@@ -66,11 +69,11 @@ pipeline {
|
|||||||
def listOfImages = ["oai-enb", "oai-gnb", "oai-lte-ue", "oai-nr-ue"]
|
def listOfImages = ["oai-enb", "oai-gnb", "oai-lte-ue", "oai-nr-ue"]
|
||||||
sh "docker login -u ${DH_Username} -p ${DH_Password} > /dev/null 2>&1"
|
sh "docker login -u ${DH_Username} -p ${DH_Password} > /dev/null 2>&1"
|
||||||
listOfImages.eachWithIndex { item, iindex ->
|
listOfImages.eachWithIndex { item, iindex ->
|
||||||
sh "docker image tag ${item}:develop ${DH_Username}/${item}:develop"
|
sh "docker image tag ${item}:develop ${DH_Account}/${item}:develop"
|
||||||
sh "docker image tag ${item}:develop ${DH_Username}/${item}:${WEEK_TAG}"
|
sh "docker image tag ${item}:develop ${DH_Account}/${item}:${WEEK_TAG}"
|
||||||
sh "docker push --quiet ${DH_Username}/${item}:${WEEK_TAG}"
|
sh "docker push --quiet ${DH_Account}/${item}:${WEEK_TAG}"
|
||||||
sh "docker push --quiet ${DH_Username}/${item}:develop"
|
sh "docker push --quiet ${DH_Account}/${item}:develop"
|
||||||
sh "docker rmi ${DH_Username}/${item}:${WEEK_TAG} ${DH_Username}/${item}:develop"
|
sh "docker rmi ${DH_Account}/${item}:${WEEK_TAG} ${DH_Account}/${item}:develop"
|
||||||
}
|
}
|
||||||
sh "docker logout > /dev/null 2>&1"
|
sh "docker logout > /dev/null 2>&1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
AUTH_SERVICE = 'registry.docker.io'
|
AUTH_SERVICE = 'registry.docker.io'
|
||||||
AUTH_SCOPE = 'repository:rdefosseoai/oai-enb:pull'
|
AUTH_SCOPE = 'repository:oaisoftwarealliance/oai-enb:pull'
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
args = _parse_args()
|
args = _parse_args()
|
||||||
|
|
||||||
cmd = 'curl -fsSL "https://auth.docker.io/token?service=' + AUTH_SERVICE + '&scope=' + AUTH_SCOPE + '" | jq --raw-output ".token"'
|
cmd = 'curl -fsSL "https://auth.docker.io/token?service=' + AUTH_SERVICE + '&scope=' + AUTH_SCOPE + '" 2>/dev/null | jq --raw-output ".token"'
|
||||||
token = subprocess.check_output(cmd, shell=True, universal_newlines=True)
|
token = subprocess.check_output(cmd, shell=True, universal_newlines=True)
|
||||||
token = str(token).strip()
|
token = str(token).strip()
|
||||||
cmd = 'curl -fsSL -H "Authorization: Bearer ' + token + '" "https://index.docker.io/v2/rdefosseoai/oai-enb/tags/list" | jq .'
|
cmd = 'curl -fsSL -H "Authorization: Bearer ' + token + '" "https://index.docker.io/v2/oaisoftwarealliance/oai-enb/tags/list" 2>/dev/null | jq .'
|
||||||
listOfTags = subprocess.check_output(cmd, shell=True, universal_newlines=True)
|
listOfTags = subprocess.check_output(cmd, shell=True, universal_newlines=True)
|
||||||
|
|
||||||
foundTag = False
|
foundTag = False
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ This page is only valid for an `Ubuntu18` host.
|
|||||||
|
|
||||||
# 1. Retrieving the images on Docker-Hub #
|
# 1. Retrieving the images on Docker-Hub #
|
||||||
|
|
||||||
Currently the images are hosted under the user account `rdefosseoai`.
|
Currently the images are hosted under the team account `oaisoftwarealliance`. They were previously hosted under the user account `rdefosseoai`.
|
||||||
|
|
||||||
This may change in the future.
|
|
||||||
|
|
||||||
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
||||||
|
|
||||||
@@ -49,13 +47,13 @@ Now pull images.
|
|||||||
```bash
|
```bash
|
||||||
$ docker pull cassandra:2.1
|
$ docker pull cassandra:2.1
|
||||||
$ docker pull redis:6.0.5
|
$ docker pull redis:6.0.5
|
||||||
$ docker pull rdefosseoai/oai-hss:latest
|
$ docker pull oaisoftwarealliance/oai-hss:latest
|
||||||
$ docker pull rdefosseoai/magma-mme:latest
|
$ docker pull oaisoftwarealliance/magma-mme:latest
|
||||||
$ docker pull rdefosseoai/oai-spgwc:latest
|
$ docker pull oaisoftwarealliance/oai-spgwc:latest
|
||||||
$ docker pull rdefosseoai/oai-spgwu-tiny:latest
|
$ docker pull oaisoftwarealliance/oai-spgwu-tiny:latest
|
||||||
|
|
||||||
$ docker pull rdefosseoai/oai-enb:develop
|
$ docker pull oaisoftwarealliance/oai-enb:develop
|
||||||
$ docker pull rdefosseoai/oai-lte-ue:develop
|
$ docker pull oaisoftwarealliance/oai-lte-ue:develop
|
||||||
```
|
```
|
||||||
|
|
||||||
If the `redis` tag is not available, pick the newest available `6.0.x` tag at [Docker Hub Redis Tags](https://hub.docker.com/_/redis?tab=tags).
|
If the `redis` tag is not available, pick the newest available `6.0.x` tag at [Docker Hub Redis Tags](https://hub.docker.com/_/redis?tab=tags).
|
||||||
@@ -63,13 +61,13 @@ If the `redis` tag is not available, pick the newest available `6.0.x` tag at [D
|
|||||||
And **re-tag** them for tutorials' docker-compose file to work.
|
And **re-tag** them for tutorials' docker-compose file to work.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker image tag rdefosseoai/oai-spgwc:latest oai-spgwc:latest
|
$ docker image tag oaisoftwarealliance/oai-spgwc:latest oai-spgwc:latest
|
||||||
$ docker image tag rdefosseoai/oai-hss:latest oai-hss:latest
|
$ docker image tag oaisoftwarealliance/oai-hss:latest oai-hss:latest
|
||||||
$ docker image tag rdefosseoai/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
$ docker image tag oaisoftwarealliance/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
||||||
$ docker image tag rdefosseoai/magma-mme:latest magma-mme:latest
|
$ docker image tag oaisoftwarealliance/magma-mme:latest magma-mme:latest
|
||||||
|
|
||||||
$ docker image tag rdefosseoai/oai-enb:develop oai-enb:develop
|
$ docker image tag oaisoftwarealliance/oai-enb:develop oai-enb:develop
|
||||||
$ docker image tag rdefosseoai/oai-lte-ue:develop oai-lte-ue:develop
|
$ docker image tag oaisoftwarealliance/oai-lte-ue:develop oai-lte-ue:develop
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -18,9 +18,7 @@ This tutorial is only valid once this file is merged into the `develop` branch.
|
|||||||
|
|
||||||
# 1. Retrieving the images on Docker-Hub #
|
# 1. Retrieving the images on Docker-Hub #
|
||||||
|
|
||||||
Currently the images are hosted under the user account `rdefosseoai`.
|
Currently the images are hosted under the team account `oaisoftwarealliance`. They were previously hosted under the user account `rdefosseoai`.
|
||||||
|
|
||||||
This may change in the future.
|
|
||||||
|
|
||||||
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
||||||
|
|
||||||
@@ -35,27 +33,27 @@ Now pull images.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker pull mysql:5.7
|
$ docker pull mysql:5.7
|
||||||
$ docker pull rdefosseoai/oai-amf:latest
|
$ docker pull oaisoftwarealliance/oai-amf:latest
|
||||||
$ docker pull rdefosseoai/oai-nrf:latest
|
$ docker pull oaisoftwarealliance/oai-nrf:latest
|
||||||
$ docker pull rdefosseoai/oai-smf:latest
|
$ docker pull oaisoftwarealliance/oai-smf:latest
|
||||||
$ docker pull rdefosseoai/oai-spgwu-tiny:latest
|
$ docker pull oaisoftwarealliance/oai-spgwu-tiny:latest
|
||||||
|
|
||||||
$ docker pull rdefosseoai/oai-gnb:develop
|
$ docker pull oaisoftwarealliance/oai-gnb:develop
|
||||||
$ docker pull rdefosseoai/oai-nr-ue:develop
|
$ docker pull oaisoftwarealliance/oai-nr-ue:develop
|
||||||
$ docker pull rdefosseoai/proxy:latest
|
$ docker pull oaisoftwarealliance/proxy:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
And **re-tag** them for tutorials' docker-compose file to work.
|
And **re-tag** them for tutorials' docker-compose file to work.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker image tag rdefosseoai/oai-amf:latest oai-amf:latest
|
$ docker image tag oaisoftwarealliance/oai-amf:latest oai-amf:latest
|
||||||
$ docker image tag rdefosseoai/oai-nrf:latest oai-nrf:latest
|
$ docker image tag oaisoftwarealliance/oai-nrf:latest oai-nrf:latest
|
||||||
$ docker image tag rdefosseoai/oai-smf:latest oai-smf:latest
|
$ docker image tag oaisoftwarealliance/oai-smf:latest oai-smf:latest
|
||||||
$ docker image tag rdefosseoai/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
$ docker image tag oaisoftwarealliance/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
||||||
|
|
||||||
$ docker image tag rdefosseoai/oai-gnb:develop oai-gnb:develop
|
$ docker image tag oaisoftwarealliance/oai-gnb:develop oai-gnb:develop
|
||||||
$ docker image tag rdefosseoai/oai-nr-ue:develop oai-nr-ue:develop
|
$ docker image tag oaisoftwarealliance/oai-nr-ue:develop oai-nr-ue:develop
|
||||||
$ docker image tag rdefosseoai/proxy:latest oai-lte-multi-ue-proxy:latest
|
$ docker image tag oaisoftwarealliance/proxy:latest oai-lte-multi-ue-proxy:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ This page is only valid for an `Ubuntu18` host.
|
|||||||
|
|
||||||
# 1. Retrieving the images on Docker-Hub #
|
# 1. Retrieving the images on Docker-Hub #
|
||||||
|
|
||||||
Currently the images are hosted under the user account `rdefosseoai`.
|
Currently the images are hosted under the team account `oaisoftwarealliance`. They were previously hosted under the user account `rdefosseoai`.
|
||||||
|
|
||||||
This may change in the future.
|
|
||||||
|
|
||||||
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
Once again you may need to log on [docker-hub](https://hub.docker.com/) if your organization has reached pulling limit as `anonymous`.
|
||||||
|
|
||||||
@@ -52,25 +50,25 @@ Now pull images.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker pull mysql:5.7
|
$ docker pull mysql:5.7
|
||||||
$ docker pull rdefosseoai/oai-amf:latest
|
$ docker pull oaisoftwarealliance/oai-amf:latest
|
||||||
$ docker pull rdefosseoai/oai-nrf:latest
|
$ docker pull oaisoftwarealliance/oai-nrf:latest
|
||||||
$ docker pull rdefosseoai/oai-smf:latest
|
$ docker pull oaisoftwarealliance/oai-smf:latest
|
||||||
$ docker pull rdefosseoai/oai-spgwu-tiny:latest
|
$ docker pull oaisoftwarealliance/oai-spgwu-tiny:latest
|
||||||
|
|
||||||
$ docker pull rdefosseoai/oai-gnb:develop
|
$ docker pull oaisoftwarealliance/oai-gnb:develop
|
||||||
$ docker pull rdefosseoai/oai-nr-ue:develop
|
$ docker pull oaisoftwarealliance/oai-nr-ue:develop
|
||||||
```
|
```
|
||||||
|
|
||||||
And **re-tag** them for tutorials' docker-compose file to work.
|
And **re-tag** them for tutorials' docker-compose file to work.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker image tag rdefosseoai/oai-amf:latest oai-amf:latest
|
$ docker image tag oaisoftwarealliance/oai-amf:latest oai-amf:latest
|
||||||
$ docker image tag rdefosseoai/oai-nrf:latest oai-nrf:latest
|
$ docker image tag oaisoftwarealliance/oai-nrf:latest oai-nrf:latest
|
||||||
$ docker image tag rdefosseoai/oai-smf:latest oai-smf:latest
|
$ docker image tag oaisoftwarealliance/oai-smf:latest oai-smf:latest
|
||||||
$ docker image tag rdefosseoai/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
$ docker image tag oaisoftwarealliance/oai-spgwu-tiny:latest oai-spgwu-tiny:latest
|
||||||
|
|
||||||
$ docker image tag rdefosseoai/oai-gnb:develop oai-gnb:develop
|
$ docker image tag oaisoftwarealliance/oai-gnb:develop oai-gnb:develop
|
||||||
$ docker image tag rdefosseoai/oai-nr-ue:develop oai-nr-ue:develop
|
$ docker image tag oaisoftwarealliance/oai-nr-ue:develop oai-nr-ue:develop
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user