Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
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-AUSF
Commits
32a59103
Commit
32a59103
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
5adbaedb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
35 deletions
+52
-35
CHANGELOG.md
CHANGELOG.md
+2
-1
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
+13
-8
docker/Dockerfile.ausf.rhel8
docker/Dockerfile.ausf.rhel8
+19
-15
docker/Dockerfile.ausf.ubuntu18
docker/Dockerfile.ausf.ubuntu18
+18
-11
No files found.
CHANGELOG.md
View file @
32a59103
# RELEASE NOTES : #
## v1.3.0 --
December
2021 ##
## v1.3.0 --
January
2021 ##
*
HTTP2 Support
*
Docker optimization
## v1.2.1 -- October 2021 ##
...
...
ci-scripts/docker/Dockerfile.ci.ubuntu.18.04
View file @
32a59103
...
...
@@ -36,7 +36,8 @@ RUN cp -Rf /openair-ausf-ext-ref /openair-ausf/build/ext
# Building AUSF
WORKDIR /openair-ausf/build/scripts
RUN ./build_ausf --clean --Verbose --build-type Release --jobs
RUN ./build_ausf --clean --Verbose --build-type Release --jobs && \
mv /openair-ausf/build/ausf/build/ausf /openair-ausf/build/ausf/build/oai_ausf
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -55,21 +56,25 @@ RUN apt-get update && \
tshark \
perl \
libasan4 \
libnettle6 \
libnghttp2-14 \
libhogweed4 \
libconfig++9v5 \
libcurl4-gnutls-dev \
&& rm -rf /var/lib/apt/lists/*
# Copying executable and generated libraries
WORKDIR /openair-ausf/bin
COPY --from=oai-ausf-builder /openair-ausf/build/ausf/build/ausf oai_ausf
COPY --from=oai-ausf-builder /openair-ausf/scripts/entrypoint.sh .
COPY --from=oai-ausf-builder \
/openair-ausf/build/ausf/build/oai_ausf \
/openair-ausf/scripts/entrypoint.sh \
./
COPY --from=oai-ausf-builder /usr/local/lib/libpistache.so /usr/local/lib/
COPY --from=oai-ausf-builder /usr/lib/x86_64-linux-gnu/libnettle.so.6 /usr/local/lib/
COPY --from=oai-ausf-builder /usr/lib/libboost_system.so.1.67.0 /usr/local/lib/
COPY --from=oai-ausf-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
COPY --from=oai-ausf-builder \
/usr/local/lib/libpistache.so \
/usr/lib/libboost_system.so.1.67.0 \
/usr/local/lib/libnghttp2_asio.so.1 \
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 \
/usr/local/lib/
RUN ldconfig
...
...
docker/Dockerfile.ausf.rhel8
View file @
32a59103
...
...
@@ -64,9 +64,9 @@ COPY . /openair-ausf
# Installing and Building AUSF
WORKDIR /openair-ausf/build/scripts
RUN ./build_ausf --install-deps --force
RUN ./build_ausf --clean --Verbose --build-type Release --jobs
RUN ldd /openair-ausf/build/ausf/build/
ausf
RUN ./build_ausf --clean --Verbose --build-type Release --jobs
&& \
ldd /openair-ausf/build/ausf/build/ausf && \
mv /openair-ausf/build/ausf/build/ausf /openair-ausf/build/ausf/build/oai_
ausf
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -92,20 +92,24 @@ RUN yum update -y && \
# Copying executable and generated libraries
WORKDIR /openair-ausf/bin
COPY --from=oai-ausf-builder /openair-ausf/build/ausf/build/ausf oai_ausf
COPY --from=oai-ausf-builder /openair-ausf/scripts/entrypoint.sh .
COPY --from=oai-ausf-builder \
/openair-ausf/build/ausf/build/oai_ausf \
/openair-ausf/scripts/entrypoint.sh \
./
WORKDIR /usr/local/lib64
COPY --from=oai-ausf-builder /usr/local/lib64/libpistache.so.0 .
COPY --from=oai-ausf-builder /lib64/libboost_system.so.1.66.0 .
COPY --from=oai-ausf-builder /lib64/libboost_thread.so.1.66.0 .
COPY --from=oai-ausf-builder /lib64/libboost_date_time.so.1.66.0 .
COPY --from=oai-ausf-builder /lib64/libconfig++.so.9 .
COPY --from=oai-ausf-builder /lib64/libnghttp2.so.14 .
COPY --from=oai-ausf-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/lib64/
RUN ldconfig -v
RUN ldd /openair-ausf/bin/oai_ausf
COPY --from=oai-ausf-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/local/lib/libnghttp2_asio.so.1 \
./
RUN ldconfig -v && \
ldd /openair-ausf/bin/oai_ausf
WORKDIR /openair-ausf/etc
COPY --from=oai-ausf-builder /openair-ausf/etc/ausf.conf .
...
...
docker/Dockerfile.ausf.ubuntu18
View file @
32a59103
...
...
@@ -34,10 +34,12 @@ ARG NEEDED_GIT_PROXY
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
psmisc \
software-properties-common \
git \
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \
psmisc \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# Some GIT configuration command quite useful
...
...
@@ -52,7 +54,8 @@ COPY . /openair-ausf
# Installing and Building AUSF
WORKDIR /openair-ausf/build/scripts
RUN ./build_ausf --install-deps --force
RUN ./build_ausf --clean --Verbose --build-type Release --jobs
RUN ./build_ausf --clean --Verbose --build-type Release --jobs && \
mv /openair-ausf/build/ausf/build/ausf /openair-ausf/build/ausf/build/oai_ausf
#---------------------------------------------------------------------
# TARGET IMAGE
...
...
@@ -75,17 +78,21 @@ RUN apt-get update && \
libnghttp2-14 \
libhogweed4 \
libconfig++9v5 \
libcurl4-gnutls-dev \
&& rm -rf /var/lib/apt/lists/*
# Copying executable and generated libraries
WORKDIR /openair-ausf/bin
COPY --from=oai-ausf-builder /openair-ausf/build/ausf/build/ausf oai_ausf
COPY --from=oai-ausf-builder /openair-ausf/scripts/entrypoint.sh .
COPY --from=oai-ausf-builder \
/openair-ausf/build/ausf/build/oai_ausf \
/openair-ausf/scripts/entrypoint.sh \
./
COPY --from=oai-ausf-builder /usr/local/lib/libpistache.so /usr/local/lib/
COPY --from=oai-ausf-builder /usr/lib/libboost_system.so.1.67.0 /usr/local/lib/
COPY --from=oai-ausf-builder /usr/local/lib/libnghttp2_asio.so.1 /usr/local/lib/
COPY --from=oai-ausf-builder \
/usr/local/lib/libpistache.so \
/usr/lib/libboost_system.so.1.67.0 \
/usr/local/lib/libnghttp2_asio.so.1 \
/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 \
/usr/local/lib/
RUN ldconfig
...
...
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