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-Simple
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
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
CommunityXG
OpenXG-AMF-Simple
Commits
c8d54a02
Commit
c8d54a02
authored
Jun 30, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerfile completed
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@openairinterface.org
>
parent
ec13fce7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
21 deletions
+40
-21
Dockerfile.ubuntu.18.04
Dockerfile.ubuntu.18.04
+39
-19
build/scripts/build_helper.amf
build/scripts/build_helper.amf
+1
-2
No files found.
Dockerfile.ubuntu.18.04
View file @
c8d54a02
...
...
@@ -26,9 +26,9 @@
#---------------------------------------------------------------------
#---------------------------------------------------------------------
#
DEVELOP
ER IMAGE
#
BUILD
ER IMAGE
#---------------------------------------------------------------------
FROM ubuntu:bionic as oai-amf-
develop
er
FROM ubuntu:bionic as oai-amf-
build
er
ARG EURECOM_PROXY
...
...
@@ -52,16 +52,6 @@ COPY ./ /openair-amf
# Installing all the needed libraries/packages to build and run AMF
WORKDIR /openair-amf/build/scripts
RUN ./build_amf --install-deps --force
RUN rm -Rf /openair-amf
WORKDIR /
#---------------------------------------------------------------------
# BUILDER IMAGE
#---------------------------------------------------------------------
FROM oai-amf-developer as oai-amf-builder
WORKDIR /openair-amf/
COPY ./ /openair-amf
# Building AMF
WORKDIR /openair-amf/build/scripts
...
...
@@ -80,16 +70,46 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DE
net-tools \
bc \
tshark \
libconfig++9v5 \
libsctp1 \
&& rm -rf /var/lib/apt/lists/*
# Copying executable and generated libraries
WORKDIR /openair-amf/bin
COPY --from=oai-amf-builder /openair-amf/build/amf/build/amf oai_amf
#COPY --from=oai-amf-builder /usr/local/lib/libpistache.so /usr/local/lib/
#COPY --from=oai-amf-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
#COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 /usr/lib/x86_64-linux-gnu/
#COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.65.1 /usr/lib/x86_64-linux-gnu/
#COPY --from=oai-amf-builder /openair-amf/build/amf/build/libNAS.so /usr/local/lib/
#COPY --from=oai-amf-builder /openair-amf/build/amf/build/libSMF_API.so /usr/local/lib/
#RUN ldconfig
WORKDIR /usr/lib/x86_64-linux-gnu
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libcpprest.so.2.10 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libssl.so.1.1 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/librtmp.so.1 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libpsl.so.5 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libsasl2.so.2 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libgssapi.so.3 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libheimbase.so.1 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libkrb5.so.26 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libasn1.so.8 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libroken.so.18 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libwind.so.0 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libhx509.so.5 .
COPY --from=oai-amf-builder /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 .
WORKDIR /usr/local/lib
COPY --from=oai-amf-builder /usr/local/lib/libpistache.so .
RUN ldconfig
# Copying template configuration files
WORKDIR /openair-amf/etc
COPY --from=oai-amf-builder /openair-amf/etc/amf.conf .
COPY --from=oai-amf-builder /openair-amf/etc/modules.conf .
WORKDIR /openair-amf
build/scripts/build_helper.amf
View file @
c8d54a02
...
...
@@ -39,7 +39,6 @@ install_nlohmann_from_git() {
git submodule update
--init
cd
json
&&
git checkout master
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
popd
&&
return
$ret
cd
json
mkdir
_build
&&
cd
_build
cmake
-G
"Unix Makefiles"
-DCMAKE_BUILD_TYPE
=
Release ..
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
popd
&&
return
$ret
...
...
@@ -85,7 +84,6 @@ install_pistache_from_git() {
git submodule update
--init
cd
pistache
&&
git checkout master
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
popd
&&
return
$ret
cd
pistache
mkdir
_build
&&
cd
_build
cmake
-G
"Unix Makefiles"
-DCMAKE_BUILD_TYPE
=
Release ..
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
popd
&&
return
$ret
...
...
@@ -295,6 +293,7 @@ check_install_amf_deps(){
install_nlohmann_from_git
$1
$2
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
$SUDO
ldconfig
return
0
}
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