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
ARG NEEDED_GIT_PROXY
ENV DEBIAN_FRONTEND=noninteractive
# 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
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
COPY scripts/ /vpp-upf/scripts
# Applying vpp patches
RUN git clone -b stable/2101 https://github.com/fdio/vpp.git && cd vpp/ && git checkout -b downstream
RUN git clone https://github.com/travelping/upg-vpp.git
RUN mv upg-vpp/upf/ vpp/src/plugins/
RUN mv upg-vpp/vpp-patches/* scripts/patches/
RUN mv upg-vpp/vpp.spec /
RUN ./scripts/apply_vpp_patches.sh
RUN touch /etc/apt/apt.conf.d/90forceyes
RUN echo "APT::Get::Assume-Yes "true";" >> /etc/apt/apt.conf.d/90forceyes
RUN echo "APT::Get::force-yes "true";" >> /etc/apt/apt.conf.d/90forceyes
RUN git clone -b stable/2101 https://github.com/fdio/vpp.git && \
git clone https://github.com/travelping/upg-vpp.git && \
# For the moment let us fix a given commit
cd upg-vpp && \
git checkout -f 4d32e1721c1e9a1bd7ea861658f502a64f9b4073 && \
cd .. && \
mv upg-vpp/upf/ vpp/src/plugins/ && \
mv upg-vpp/vpp-patches/* scripts/patches/ && \
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.
...
...
@@ -51,17 +67,19 @@ RUN make install-dep build-release -C vpp
#---------------------------------------------------------------------
# TARGET IMAGE
#---------------------------------------------------------------------
FROM ubuntu:bionic as vpp-up
g
FROM ubuntu:bionic as vpp-up
f
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
net-tools \
tshark \
tzdata\
openssl \
libhyperscan-dev \
iproute2 \
vim \
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
net-tools \
tshark \
tzdata\
openssl \
libhyperscan-dev \
iproute2 \
vim \
&& rm -rf /var/lib/apt/lists/*
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
$
cd
oai-cn5g-upf-vpp
$
git checkout
vpp-upf
$
git checkout
develop
```
# 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 not need, remove the
`--build-arg
NEEDED_GIT
_PROXY=".."`
option.
*
If you do need it, change with your proxy value.
# 3. Build vpp-upf image #
## 3.1 On a Ubuntu 18.04 Host ##
```
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
\
--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 ##
...
...
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