Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
ced2a66f
Commit
ced2a66f
authored
Apr 27, 2022
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): changing the Docker Hub account to push to
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
b0894699
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
57 deletions
+54
-57
ci-scripts/Jenkinsfile-push-registry
ci-scripts/Jenkinsfile-push-registry
+8
-5
ci-scripts/provideUniqueImageTag.py
ci-scripts/provideUniqueImageTag.py
+3
-3
ci-scripts/yaml_files/4g_rfsimulator_fdd_05MHz/README.md
ci-scripts/yaml_files/4g_rfsimulator_fdd_05MHz/README.md
+13
-15
ci-scripts/yaml_files/5g_l2sim_tdd/README.md
ci-scripts/yaml_files/5g_l2sim_tdd/README.md
+17
-19
ci-scripts/yaml_files/5g_rfsimulator/README.md
ci-scripts/yaml_files/5g_rfsimulator/README.md
+13
-15
No files found.
ci-scripts/Jenkinsfile-push-registry
View file @
ced2a66f
...
@@ -26,6 +26,9 @@ def nodeExecutor = params.nodeExecutor
...
@@ -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 {
...
@@ -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"
}
}
...
...
ci-scripts/provideUniqueImageTag.py
View file @
ced2a66f
...
@@ -5,15 +5,15 @@ import subprocess
...
@@ -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
...
...
ci-scripts/yaml_files/4g_rfsimulator_fdd_05MHz/README.md
View file @
ced2a66f
...
@@ -31,9 +31,7 @@ This page is only valid for an `Ubuntu18` host.
...
@@ -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.
...
@@ -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
...
@@ -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
...
...
ci-scripts/yaml_files/5g_l2sim_tdd/README.md
View file @
ced2a66f
...
@@ -18,9 +18,7 @@ This tutorial is only valid once this file is merged into the `develop` branch.
...
@@ -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.
...
@@ -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
...
...
ci-scripts/yaml_files/5g_rfsimulator/README.md
View file @
ced2a66f
...
@@ -35,9 +35,7 @@ This page is only valid for an `Ubuntu18` host.
...
@@ -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.
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment