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
bd7faec2
Commit
bd7faec2
authored
Apr 06, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCKER] reformating
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
853137b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
67 deletions
+41
-67
docker/Dockerfile.ubuntu.18.04
docker/Dockerfile.ubuntu.18.04
+37
-19
docs/BUILD_IMAGE.md
docs/BUILD_IMAGE.md
+4
-4
docs/DEVELOPMENT_GUIDELINE.md
docs/DEVELOPMENT_GUIDELINE.md
+0
-44
No files found.
docker/Dockerfile.ubuntu.18.04
View file @
bd7faec2
...
@@ -21,8 +21,20 @@ FROM ubuntu:18.04 AS vpp-upf-builder
...
@@ -21,8 +21,20 @@ FROM ubuntu:18.04 AS vpp-upf-builder
ARG NEEDED_GIT_PROXY
ARG NEEDED_GIT_PROXY
ENV DEBIAN_FRONTEND=noninteractive
# Installing hyperscan library for upf plugin
# Installing hyperscan library for upf plugin
RUN apt update && apt install git sudo wget make build-essential libhyperscan-dev -y
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
git \
sudo \
wget \
make \
build-essential \
libhyperscan-dev \
&& rm -rf /var/lib/apt/lists/*
# Some GIT configuration commands quite useful
# Some GIT configuration commands quite useful
RUN /bin/bash -c "if [[ -v NEEDED_GIT_PROXY ]]; then git config --global http.proxy $NEEDED_GIT_PROXY; fi"
RUN /bin/bash -c "if [[ -v NEEDED_GIT_PROXY ]]; then git config --global http.proxy $NEEDED_GIT_PROXY; fi"
...
@@ -33,15 +45,19 @@ WORKDIR /vpp-upf
...
@@ -33,15 +45,19 @@ WORKDIR /vpp-upf
COPY scripts/ /vpp-upf/scripts
COPY scripts/ /vpp-upf/scripts
# Applying vpp patches
# Applying vpp patches
RUN git clone -b stable/2101 https://github.com/fdio/vpp.git && cd vpp/ && git checkout -b downstream
RUN git clone -b stable/2101 https://github.com/fdio/vpp.git && \
RUN git clone https://github.com/travelping/upg-vpp.git
git clone https://github.com/travelping/upg-vpp.git && \
RUN mv upg-vpp/upf/ vpp/src/plugins/
# For the moment let us fix a given commit
RUN mv upg-vpp/vpp-patches/* scripts/patches/
cd upg-vpp && \
RUN mv upg-vpp/vpp.spec /
git checkout -f 4d32e1721c1e9a1bd7ea861658f502a64f9b4073 && \
RUN ./scripts/apply_vpp_patches.sh
cd .. && \
RUN touch /etc/apt/apt.conf.d/90forceyes
mv upg-vpp/upf/ vpp/src/plugins/ && \
RUN echo "APT::Get::Assume-Yes "true";" >> /etc/apt/apt.conf.d/90forceyes
mv upg-vpp/vpp-patches/* scripts/patches/ && \
RUN echo "APT::Get::force-yes "true";" >> /etc/apt/apt.conf.d/90forceyes
mv upg-vpp/vpp.spec / && \
./scripts/apply_vpp_patches.sh && \
touch /etc/apt/apt.conf.d/90forceyes && \
echo "APT::Get::Assume-Yes "true";" >> /etc/apt/apt.conf.d/90forceyes && \
echo "APT::Get::force-yes "true";" >> /etc/apt/apt.conf.d/90forceyes
# To Do - remove unnecessary pulgin build to optimise build time e.g. ipsec, dpdk etc.
# To Do - remove unnecessary pulgin build to optimise build time e.g. ipsec, dpdk etc.
...
@@ -51,17 +67,19 @@ RUN make install-dep build-release -C vpp
...
@@ -51,17 +67,19 @@ RUN make install-dep build-release -C vpp
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# TARGET IMAGE
# TARGET IMAGE
#---------------------------------------------------------------------
#---------------------------------------------------------------------
FROM ubuntu:bionic as vpp-up
g
FROM ubuntu:bionic as vpp-up
f
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
ENV TZ=Europe/Paris
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
RUN apt-get update && \
net-tools \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
tshark \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
tzdata\
net-tools \
openssl \
tshark \
libhyperscan-dev \
tzdata\
iproute2 \
openssl \
vim \
libhyperscan-dev \
iproute2 \
vim \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openair-upf/bin/
WORKDIR /openair-upf/bin/
...
...
docs/BUILD_IMAGE.md
View file @
bd7faec2
...
@@ -5,23 +5,23 @@ $ git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp.git
...
@@ -5,23 +5,23 @@ $ git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp.git
$
cd
oai-cn5g-upf-vpp
$
cd
oai-cn5g-upf-vpp
$
git checkout
vpp-upf
$
git checkout
develop
```
```
# 2. Generic Parameters #
# 2. Generic Parameters #
Here in our network configuration, we need to pass the "GIT PROXY" configuration.
Here in our network configuration, we need to pass the "GIT PROXY" configuration.
*
If you do not need, remove the
`--build-arg
EURECOM
_PROXY=".."`
option.
*
If you do not need, remove the
`--build-arg
NEEDED_GIT
_PROXY=".."`
option.
*
If you do need it, change with your proxy value.
*
If you do need it, change with your proxy value.
# 3. Build vpp-upf image #
# 3. Build vpp-upf image #
## 3.1 On a Ubuntu 18.04 Host ##
## 3.1 On a Ubuntu 18.04 Host ##
```
bash
```
bash
$
docker build
--target
vpp-up
g
--tag
vpp-upg
:latest
\
$
docker build
--target
vpp-up
f
--tag
vpp-upf
:latest
\
--file
docker/Dockerfile.ubuntu.18.04
\
--file
docker/Dockerfile.ubuntu.18.04
\
--build-arg
EURECOM_PROXY
=
"http://proxy.eurecom.fr:8080"
.
--build-arg
NEEDED_GIT_PROXY
=
"http://proxy.eurecom.fr:8080"
.
```
```
## 3.2 On a CentOS 8 Host ##
## 3.2 On a CentOS 8 Host ##
...
...
docs/DEVELOPMENT_GUIDELINE.md
deleted
100644 → 0
View file @
853137b4
# 1. Retrieve the proper code version #
```
bash
$
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-upf-vpp.git
$
cd
oai-cn5g-upf-vpp
$
git checkout vpp-upf
```
# 2. Generic Parameters #
Here in our network configuration, we need to pass the "GIT PROXY" configuration.
*
If you do not need, remove the
`--build-arg EURECOM_PROXY=".."`
option.
*
If you do need it, change with your proxy value.
# 3. Build vpp-upf source #
## 3.1 On a Docker Ubuntu 18.04 Host ##
```
bash
$
docker build
--tag
vpp-upg:dev
\
--file
docker/Dockerfile.ubuntu.18.04.dev
\
--build-arg
EURECOM_PROXY
=
"http://proxy.eurecom.fr:8080"
.
```
or
## 3.1 On a Ubuntu 18.04 Native ##
### Install VPP-UPF software dependencies
```
bash
ubuntu@test-upf:~
$
cd
oai-cn5g-upf-vpp/
ubuntu@test-upf:~/oai-cn5g-upf-vpp
$
cd
./build/scripts
ubuntu@test-upf:~/oai-cn5g-upf-vpp/build/scripts
$
./build_vpp_upf
-I
-f
```
### Build VPP-UPF
//TO DO
```
bash
ubuntu@test-upf:~/oai-cn5g-upf-vpp/build/scripts
$
./build_vpp_upf
-c
-V
-b
Debug
-j
```
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