Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-UPF
Commits
be9bc21e
Commit
be9bc21e
authored
Feb 08, 2022
by
kharade
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp
into native_build_fix
parents
9698e5ab
cb7d8b5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
20 deletions
+69
-20
CHANGELOG.md
CHANGELOG.md
+6
-0
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+57
-18
docker/Dockerfile.upf-vpp.rhel7
docker/Dockerfile.upf-vpp.rhel7
+6
-2
No files found.
CHANGELOG.md
View file @
be9bc21e
# RELEASE NOTES: #
## v1.3.0 -- January 2022 ##
*
Upgrade to UPG plugin stable/1.2
*
Build fixes
*
Deployment fixes (wait launch of NRF Client until VPP is getting ready)
## v1.2.1 -- October 2021 ##
*
Initial Public Release
...
...
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
be9bc21e
...
...
@@ -197,9 +197,10 @@ pipeline {
myShCmd
(
'sudo podman image rm oai-upf-vpp:'
+
upf_tag
+
' || true'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo podman image prune --force'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
// Copy the RHEL Host certificates for building
myShCmd
(
'mkdir -p tmp/ca tmp/entitlement'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'cp /etc/pki/entitlement/*pem tmp/entitlement'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo cp /etc/rhsm/ca/redhat-uep.pem tmp/ca'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'mkdir -p ./etc-pki-entitlement ./rhsm-conf ./rhsm-ca'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'cp /etc/pki/entitlement/*pem ./etc-pki-entitlement'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo cp /etc/rhsm/rhsm.conf ./rhsm-conf'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo cp /etc/rhsm/ca/*pem ./rhsm-ca'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo podman build --no-cache --target oai-upf-vpp --tag oai-upf-vpp:'
+
upf_tag
+
' --file docker/Dockerfile.upf-vpp.rhel7 --build-arg NEEDED_GIT_PROXY="http://proxy.eurecom.fr:8080" . > archives/upf_podman_image_build.log 2>&1'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo podman image ls >> archives/upf_podman_image_build.log'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
...
...
@@ -229,6 +230,7 @@ pipeline {
steps
{
lock
(
params
.
SanityCheckDockerContainers
)
{
script
{
gitlabCommitStatus
(
name:
"Sanity Check Deployment"
)
{
sh
'python3 ./ci-scripts/sanityCheckDeployment.py --mode Deploy --service mysql'
// NRF SHALL BE DEPLOYED BEFORE UPF-VPP
sh
'python3 ./ci-scripts/sanityCheckDeployment.py --mode Deploy --service oai-nrf'
...
...
@@ -247,6 +249,7 @@ pipeline {
}
}
}
}
post
{
unsuccessful
{
sh
'python3 ./ci-scripts/sanityCheckDeployment.py --mode Check --service all || true'
...
...
@@ -255,6 +258,40 @@ pipeline {
}
}
}
stage
(
'Testing whole 5g Core Network Functions'
)
{
parallel
{
stage
(
'Testing the tutorials'
)
{
steps
{
script
{
gitlabCommitStatus
(
name:
"Test tutorials"
)
{
localStatus
=
build
job:
'OAI-CN5G-Tutorials-Check'
,
parameters:
[
string
(
name:
'UPF_VPP_TAG'
,
value:
String
.
valueOf
(
upf_tag
)),
string
(
name:
'UPF_VPP_BRANCH'
,
value:
String
.
valueOf
(
upf_branch
))
],
propagate:
false
localResult
=
localStatus
.
getResult
()
if
(
localStatus
.
resultIsBetterOrEqualTo
(
'SUCCESS'
))
{
echo
"Tutorials Test Job is OK"
}
else
{
echo
"Tutorials Test Job is KO"
sh
"ci-scripts/fail.sh"
}
}
}
}
post
{
always
{
script
{
copyArtifacts
(
projectName:
'OAI-CN5G-Tutorials-Check'
,
filter:
'*_results_oai_cn5g*.html'
,
selector:
lastCompleted
())
}
}
}
}
}
}
// For the moment it is Docker-Hub, but we might have a new one internally.
stage
(
'Pushing Image to Official Registry'
)
{
steps
{
...
...
@@ -313,14 +350,16 @@ pipeline {
}
try
{
myShCmd
(
'docker image prune --force'
,
rem_u18_host_flag
,
rem_u18_host_user
,
rem_u18_host
)
myShCmd
(
'docker volume prune --force'
,
rem_u18_host_flag
,
rem_u18_host_user
,
rem_u18_host
)
}
catch
(
Exception
e
)
{
echo
"We failed to prune all un
needed intermediate imag
es"
echo
"We failed to prune all un
-needed intermediate images/volum
es"
}
if
(
rem_rhel_host_flag
)
{
try
{
myShCmd
(
'sudo podman image prune --force'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
myShCmd
(
'sudo podman volume prune --force'
,
rem_rhel_host_flag
,
rem_rhel_host_user
,
rem_rhel_host
)
}
catch
(
Exception
e
)
{
echo
"We failed to prune all un
needed intermediate imag
es"
echo
"We failed to prune all un
-needed intermediate images/volum
es"
}
}
...
...
docker/Dockerfile.upf-vpp.rhel7
View file @
be9bc21e
...
...
@@ -32,8 +32,12 @@ FROM registry.access.redhat.com/ubi7/ubi:latest AS vpp-upf-builder
ARG NEEDED_GIT_PROXY
COPY tmp/ca/redhat-uep.pem /etc/rhsm/ca
COPY tmp/entitlement/*.pem /etc/pki/entitlement
# Copy the entitlements
COPY ./etc-pki-entitlement /etc/pki/entitlement
# Copy the subscription manager configurations
COPY ./rhsm-conf /etc/rhsm
COPY ./rhsm-ca /etc/rhsm/ca
RUN rm -f /etc/rhsm-host && \
subscription-manager repos --enable rhel-server-rhscl-7-rpms && \
...
...
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