Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
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-AMF
Commits
58d6f744
Commit
58d6f744
authored
Aug 24, 2022
by
sagar arora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): adapt rhel dockerfile for openshift build
Signed-off-by:
Sagar Arora
<
sagar.arora@eurecom.fr
>
parent
be45ad9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
4 deletions
+101
-4
ci-scripts/openshift/oai-amf-bc.yaml
ci-scripts/openshift/oai-amf-bc.yaml
+50
-0
ci-scripts/openshift/oai-amf-is.yaml
ci-scripts/openshift/oai-amf-is.yaml
+32
-0
docker/Dockerfile.amf.rhel8
docker/Dockerfile.amf.rhel8
+19
-4
No files found.
ci-scripts/openshift/oai-amf-bc.yaml
0 → 100644
View file @
58d6f744
#/*
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# * contributor license agreements. See the NOTICE file distributed with
# * this work for additional information regarding copyright ownership.
# * The OpenAirInterface Software Alliance licenses this file to You under
# * the OAI Public License, Version 1.1 (the "License"); you may not use this file
# * except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.openairinterface.org/?page_id=698
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *-------------------------------------------------------------------------------
# * For more information about the OpenAirInterface (OAI) Software Alliance:
# * contact@openairinterface.org
# */
#---------------------------------------------------------------------
#
---
kind
:
BuildConfig
apiVersion
:
build.openshift.io/v1
metadata
:
name
:
"
oai-amf"
namespace
:
oaicicd-core
spec
:
runPolicy
:
"
Serial"
source
:
type
:
"
Binary"
secrets
:
-
secret
:
name
:
etc-pki-entitlement
destinationDir
:
etc-pki-entitlement
configMaps
:
-
configMap
:
name
:
rhsm-conf
destinationDir
:
rhsm-conf
-
configMap
:
name
:
rhsm-ca
destinationDir
:
rhsm-ca
strategy
:
dockerStrategy
:
dockerfilePath
:
"
docker/Dockerfile.amf.rhel8"
output
:
to
:
kind
:
"
ImageStreamTag"
name
:
"
oai-amf:develop"
ci-scripts/openshift/oai-amf-is.yaml
0 → 100644
View file @
58d6f744
#/*
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# * contributor license agreements. See the NOTICE file distributed with
# * this work for additional information regarding copyright ownership.
# * The OpenAirInterface Software Alliance licenses this file to You under
# * the OAI Public License, Version 1.1 (the "License"); you may not use this file
# * except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.openairinterface.org/?page_id=698
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# *-------------------------------------------------------------------------------
# * For more information about the OpenAirInterface (OAI) Software Alliance:
# * contact@openairinterface.org
# */
#---------------------------------------------------------------------
#
apiVersion
:
image.openshift.io/v1
kind
:
ImageStream
metadata
:
name
:
oai-amf
namespace
:
oaicicd-core
spec
:
lookupPolicy
:
local
:
true
status
:
tag
:
develop
docker/Dockerfile.amf.rhel8
View file @
58d6f744
...
...
@@ -21,7 +21,7 @@
#---------------------------------------------------------------------
#
# Dockerfile for the Open-Air-Interface AMF service
# Valid for
RHEL 8.2
# Valid for
UBI 8.6 | RHEL 8.6
#
#---------------------------------------------------------------------
...
...
@@ -72,7 +72,10 @@ WORKDIR /openair-amf/build/scripts
RUN ldconfig && \
./build_amf --clean --Verbose --build-type Release --jobs && \
ldd /openair-amf/build/amf/build/amf && \
mv /openair-amf/build/amf/build/amf /openair-amf/build/amf/build/oai_amf
mv /openair-amf/build/amf/build/amf /openair-amf/build/amf/build/oai_amf && \
# Remove entitlements and Subscription Manager configs
rm -rf /etc/pki/entitlement && \
rm -rf /etc/rhsm
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -80,7 +83,16 @@ RUN ldconfig && \
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as oai-amf
ENV TZ=Europe/Paris
# We install some debug tools for the moment in addition of mandatory libraries
RUN microdnf update -y && \
# 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 && \
microdnf update -y && \
microdnf install -y \
tzdata \
libasan \
...
...
@@ -95,7 +107,10 @@ RUN microdnf update -y && \
mysql-libs \
libconfig && \
microdnf clean all -y && \
rm -rf /var/cache/yum /var/cache/dnf
rm -rf /var/cache/yum /var/cache/dnf && \
# Remove entitlements and Subscription Manager configs
rm -rf /etc/pki/entitlement && \
rm -rf /etc/rhsm
# Copying executable and generated libraries
WORKDIR /openair-amf/bin
...
...
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