Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
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
OpenXG
OpenXG-UDR
Commits
e5cbea88
Commit
e5cbea88
authored
Jan 03, 2022
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker(build): optimization on the number of layers
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
2fefe070
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
32 deletions
+53
-32
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
+15
-8
docker/Dockerfile.udr.rhel8
docker/Dockerfile.udr.rhel8
+21
-14
docker/Dockerfile.udr.ubuntu18
docker/Dockerfile.udr.ubuntu18
+17
-10
No files found.
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
View file @
e5cbea88
...
...
@@ -41,7 +41,9 @@ RUN git clone https://github.com/vishnubob/wait-for-it.git
# Building UDR
WORKDIR /openair-udr/build/scripts
RUN ./build_udr --install-deps --force
RUN ./build_udr --clean --Verbose --build-type Release --jobs
RUN ./build_udr --clean --Verbose --build-type Release --jobs && \
ldd /openair-udr/build/udr/build/udr && \
mv /openair-udr/build/udr/build/udr /openair-udr/build/udr/build/oai_udr
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -71,15 +73,20 @@ RUN apt-get update && \
# Copying executable and generated libraries
WORKDIR /openair-udr/bin
COPY --from=oai-udr-builder /openair-udr/build/udr/build/udr oai_udr
COPY --from=oai-udr-builder /openair-udr/scripts/entrypoint.sh .
COPY --from=oai-udr-builder /wait-for-it/wait-for-it.sh .
COPY --from=oai-udr-builder \
/openair-udr/build/udr/build/oai_udr \
/openair-udr/scripts/entrypoint.sh \
/wait-for-it/wait-for-it.sh \
./
COPY --from=oai-udr-builder /usr/local/lib/libpistache.so /usr/local/lib/
COPY --from=oai-udr-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
COPY --from=oai-udr-builder /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 /usr/local/lib/
COPY --from=oai-udr-builder \
/usr/local/lib/libpistache.so \
/usr/local/lib/libnghttp2_asio.so.1 \
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 \
./
RUN ldconfig
RUN ldconfig && \
ldd /openair-udr/bin/oai_udr
WORKDIR /openair-udr/etc
COPY --from=oai-udr-builder /openair-udr/etc/udr.conf .
...
...
docker/Dockerfile.udr.rhel8
View file @
e5cbea88
...
...
@@ -70,7 +70,9 @@ WORKDIR /openair-udr/build/scripts
RUN ./build_udr --install-deps --force
# Patching the CMakefile to link mysqlclient
RUN sed -i -e "s@-lmysqlclient@-L/usr/lib64/mysql -lmysqlclient@" ../../src/oai_udr/CMakeLists.txt && \
./build_udr --clean --Verbose --build-type Release --jobs
./build_udr --clean --Verbose --build-type Release --jobs && \
ldd /openair-udr/build/udr/build/udr && \
mv /openair-udr/build/udr/build/udr /openair-udr/build/udr/build/oai_udr
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -96,21 +98,26 @@ RUN yum update -y && \
# Copying executable and generated libraries
WORKDIR /openair-udr/bin
COPY --from=oai-udr-builder /openair-udr/build/udr/build/udr oai_udr
COPY --from=oai-udr-builder /openair-udr/scripts/entrypoint.sh .
COPY --from=oai-udr-builder /wait-for-it/wait-for-it.sh .
COPY --from=oai-udr-builder \
/openair-udr/build/udr/build/oai_udr \
/openair-udr/scripts/entrypoint.sh \
/wait-for-it/wait-for-it.sh \
./
WORKDIR /usr/local/lib64
COPY --from=oai-udr-builder /usr/local/lib64/libpistache.so.0 .
COPY --from=oai-udr-builder /lib64/libboost_system.so.1.66.0 .
COPY --from=oai-udr-builder /lib64/libboost_thread.so.1.66.0 .
COPY --from=oai-udr-builder /lib64/libboost_date_time.so.1.66.0 .
COPY --from=oai-udr-builder /lib64/libconfig++.so.9 .
COPY --from=oai-udr-builder /lib64/libnghttp2.so.14 .
COPY --from=oai-udr-builder /usr/lib64/mysql/libmysqlclient.so.21 .
COPY --from=oai-udr-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/lib64/
RUN ldconfig
COPY --from=oai-udr-builder \
/usr/local/lib64/libpistache.so.0 \
/lib64/libboost_system.so.1.66.0 \
/lib64/libboost_thread.so.1.66.0 \
/lib64/libboost_date_time.so.1.66.0 \
/lib64/libconfig++.so.9 \
/lib64/libnghttp2.so.14 \
/usr/lib64/mysql/libmysqlclient.so.21 \
/usr/local/lib/libnghttp2_asio.so.1 \
./
RUN ldconfig && \
ldd /openair-udr/bin/oai_udr
WORKDIR /openair-udr/etc
COPY --from=oai-udr-builder /openair-udr/etc/udr.conf .
...
...
docker/Dockerfile.udr.ubuntu18
View file @
e5cbea88
...
...
@@ -57,7 +57,9 @@ RUN git clone https://github.com/vishnubob/wait-for-it.git
# Installing and Building UDR
WORKDIR /openair-udr/build/scripts
RUN ./build_udr --install-deps --force
RUN ./build_udr --clean --Verbose --build-type Release --jobs
RUN ./build_udr --clean --Verbose --build-type Release --jobs && \
ldd /openair-udr/build/udr/build/udr && \
mv /openair-udr/build/udr/build/udr /openair-udr/build/udr/build/oai_udr
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -87,15 +89,20 @@ RUN apt-get update && \
# Copying executable and generated libraries
WORKDIR /openair-udr/bin
COPY --from=oai-udr-builder /openair-udr/build/udr/build/udr oai_udr
COPY --from=oai-udr-builder /openair-udr/scripts/entrypoint.sh .
COPY --from=oai-udr-builder /wait-for-it/wait-for-it.sh .
COPY --from=oai-udr-builder /usr/local/lib/libpistache.so /usr/local/lib/
COPY --from=oai-udr-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
COPY --from=oai-udr-builder /usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 /usr/local/lib/
RUN ldconfig
COPY --from=oai-udr-builder \
/openair-udr/build/udr/build/oai_udr \
/openair-udr/scripts/entrypoint.sh \
/wait-for-it/wait-for-it.sh \
./
COPY --from=oai-udr-builder \
/usr/local/lib/libpistache.so \
/usr/local/lib/libnghttp2_asio.so.1 \
/usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1 \
./
RUN ldconfig && \
ldd /openair-udr/bin/oai_udr
WORKDIR /openair-udr/etc
COPY --from=oai-udr-builder /openair-udr/etc/udr.conf .
...
...
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