Commit 169386b7 authored by Javier Morgade's avatar Javier Morgade

Base Dockerfiles for eNB and UE

	- Ubuntu 16.04
	- Ubuntu 18.04
	- Centos 7.6.1810 (On going)
parent 6c8938d5
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##FROM ubuntu:16.04 AS oai-base
##RUN apt-get update && apt-get install -y \
## sudo \
## vim-common \
## git \
## build-essential \
## cmake \
## && rm -rf /var/lib/apt/lists/*
#
FROM centos:7.6.1810 AS oai-base
RUN yum update -y && yum install -y \
vim-common \
git \
make \
cmake3 \
autoconf \
automake \
bc \
bison \
flex \
libtool \
patch \
devtoolset-7 \
sudo \
openssl \
gcc-c++
#ENV GIT_SSL_NO_VERIFY=true
ENV USER=root
RUN GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git /openairinterface5g -b develop
WORKDIR /openairinterface5g
COPY nasmesh.patch nasmesh.patch
RUN git apply nasmesh.patch
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I
COPY scripts scripts/
RUN scl enable devtoolset-7 scripts/build_missing_packages
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=oai-base \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:16.04 AS oai-base
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
vim-common \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b develop
WORKDIR /openairinterface5g
COPY nasmesh.patch nasmesh.patch
RUN git apply nasmesh.patch
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I -w USRP
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=oai-base \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:18.04 AS oai-base
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
vim-common \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b develop
WORKDIR /openairinterface5g
COPY nasmesh.patch nasmesh.patch
RUN git apply nasmesh.patch
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I -w USRP
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=oai-base \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS enb-builder
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --eNB -w USRP --verbose-compile
#FROM ubuntu:16.04 AS lte-softmodem
FROM centos:7.6.1810 AS lte-softmodem
RUN yum install nettle.x86_64 -y
RUN yum install lksctp-tools.x86_64 -y
RUN yum install libyaml.x86_64 -y
RUN yum install linux-headers-4.15.0-74-generic -y
RUN yum install iperf3.x86_64 -y
RUN yum install blas.x86_64 -y
RUN yum install atlas.x86_64 -y
RUN yum install atlas-devel.x86_64 -y
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& REPOLIST="rhel-7-server-optional-rpms" \
&& PKGLIST="boost libconfig lksctp-tools protobuf-c iproute iputils procps-ng bind-utils xforms nettle libyaml libusb" \
# && yum -y upgrade-minimal --setopt=tsflags=nodocs --security --sec-severity=Critical --sec-severity=Important && \
&& yum -y install --enablerepo ${REPOLIST} --setopt=tsflag=nodocs ${PKGLIST} \
&& yum -y clean all \
&& rm -rf /var/cache/yum
#RUN apt-get update && apt-get install -y \
#libssl1.0.0 \
#libnettle6 \
#libsctp1 \
#libforms2 \
#libprotobuf-c1 \
#libyaml-0-2 \
#libconfig9 \
#dnsutils \
#iproute2 \
#iputils-ping \
#&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/cmake_targets
COPY --from=enb-builder /openairinterface5g/cmake_targets/ .
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-softmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS enb-builder
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --eNB -w USRP
FROM ubuntu:16.04 AS lte-softmodem
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libssl1.0.0 \
libnettle6 \
libsctp1 \
libforms2 \
libprotobuf-c1 \
libyaml-0-2 \
libconfig9 \
dnsutils \
iproute2 \
iputils-ping \
libblas-dev \
iperf \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/ci-scripts
COPY --from=enb-builder /openairinterface5g/ci-scripts/ .
WORKDIR /openairinterface5g/cmake_targets
COPY --from=enb-builder /openairinterface5g/cmake_targets/ .
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-softmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS enb-builder
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --eNB -w USRP
FROM ubuntu:18.04 AS lte-softmodem
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libssl1.0.0 \
libnettle6 \
libsctp1 \
libforms2 \
libprotobuf-c1 \
libyaml-0-2 \
libconfig9 \
dnsutils \
iproute2 \
iputils-ping \
libblas3 \
libatlas-base-dev \
libblas-dev \
iperf \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/ci-scripts
COPY --from=enb-builder /openairinterface5g/ci-scripts/ .
WORKDIR /openairinterface5g/cmake_targets
COPY --from=enb-builder /openairinterface5g/cmake_targets/ .
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-softmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS ue-builder
#RUN apt-get update && apt-get install -y \
#linux-headers-`uname -r` \
#&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --UE -w USRP
#FROM ubuntu:16.04 AS lte-uesoftmodem
FROM centos:7.6.1810 AS lte-uesoftmodem
#yum install linux-headers-4.15.0-74-generic -y
##RUN apt-get update && apt-get install -y \
## libssl1.0.0 \
## libnettle6 \
## libsctp1 \
## libforms2 \
## libconfig9 \
## libblas3 \
## liblapacke \
## sudo \
## dnsutils \
## iproute2 \
## iputils-ping \
## net-tools \
## && rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/cmake_targets
COPY --from=ue-builder /openairinterface5g/cmake_targets .
COPY --from=ue-builder /openairinterface5g/targets/bin/nvram .
COPY --from=ue-builder /openairinterface5g/targets/bin/usim .
COPY --from=ue-builder /openairinterface5g/targets ../targets
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-uesoftmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS ue-builder
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
linux-headers-`uname -r` \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --UE -w USRP
FROM ubuntu:16.04 AS lte-uesoftmodem
RUN apt-get update && apt-get install -y \
libssl1.0.0 \
libnettle6 \
libsctp1 \
libforms2 \
libconfig9 \
libblas3 \
liblapacke \
sudo \
dnsutils \
iproute2 \
iputils-ping \
net-tools \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/cmake_targets
COPY --from=ue-builder /openairinterface5g/cmake_targets .
COPY --from=ue-builder /openairinterface5g/targets/bin/nvram .
COPY --from=ue-builder /openairinterface5g/targets/bin/usim .
COPY --from=ue-builder /openairinterface5g/targets ../targets
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-uesoftmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ARG build_base
FROM $build_base AS ue-builder
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
linux-headers-`uname -r` \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g
ENV USER=root
RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --UE -w USRP
FROM ubuntu:18.04 AS lte-uesoftmodem
RUN apt-get update && apt-get install -y \
libssl1.0.0 \
libnettle6 \
libsctp1 \
libforms2 \
libconfig9 \
libblas3 \
liblapacke \
sudo \
dnsutils \
iproute2 \
iputils-ping \
net-tools \
libblas3 \
libatlas-base-dev \
libblas-dev \
iperf \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /openairinterface5g/cmake_targets
COPY --from=ue-builder /openairinterface5g/cmake_targets .
COPY --from=ue-builder /openairinterface5g/targets/bin/nvram .
COPY --from=ue-builder /openairinterface5g/targets/bin/usim .
COPY --from=ue-builder /openairinterface5g/targets ../targets
# Label image
ARG org_label_schema_version=unknown
ARG org_label_schema_vcs_url=unknown
ARG org_label_schema_vcs_ref=unknown
ARG org_label_schema_build_date=unknown
ARG org_opencord_vcs_commit_date=unknown
LABEL org.label-schema.schema-version=1.0 \
org.label-schema.name=lte-uesoftmodem \
org.label-schema.version=$org_label_schema_version \
org.label-schema.vcs-url=$org_label_schema_vcs_url \
org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
org.label-schema.build-date=$org_label_schema_build_date \
org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
#
# Copyright 2019-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
VERSION ?= $(shell cat ./VERSION)
BASE_NAME ?= oai-base
UE_NAME ?= lte-uesoftmodem
ENB_NAME ?= lte-softmodem
GNB_NAME ?= nr-softmodem
# Tag is fixed to OAI release version, v1.0.0, regardless of VERSION file
DOCKER_TAG ?= 1.0.0
DOCKER_REGISTRY ?=
DOCKER_REPOSITORY ?=
DOCKER_BUILD_ARGS ?=
BASE_IMAGENAME ?= ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}${BASE_NAME}:${DOCKER_TAG}
UE_IMAGENAME ?= ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}${UE_NAME}:${DOCKER_TAG}
ENB_IMAGENAME ?= ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}${ENB_NAME}:${DOCKER_TAG}
GNB_IMAGENAME ?= ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}${GNB_NAME}:${DOCKER_TAG}
## Docker labels. Only set ref and commit date if committed
DOCKER_LABEL_VCS_URL ?= $(shell git remote get-url $(shell git remote))
DOCKER_LABEL_VCS_REF ?= $(shell git diff-index --quiet HEAD -- && git rev-parse HEAD || echo "unknown")
DOCKER_LABEL_COMMIT_DATE ?= $(shell git diff-index --quiet HEAD -- && git show -s --format=%cd --date=iso-strict HEAD || echo "unknown" )
DOCKER_LABEL_BUILD_DATE ?= $(shell date -u "+%Y-%m-%dT%H:%M:%SZ")
# https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target
#
docker-build-centos.7.6.1810:
docker build $(DOCKER_BUILD_ARGS) \
--target ${BASE_NAME} \
--tag ${BASE_IMAGENAME}_centos.7.6.1810 \
--file Dockerfile.base.centos.7.6.1810 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${ENB_NAME} \
--tag ${ENB_IMAGENAME} \
--file Dockerfile.enb.centos.7.6.1810 \
--build-arg build_base=${BASE_IMAGENAME}_centos.7.6.1810 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${UE_NAME} \
--tag ${UE_IMAGENAME} \
--file Dockerfile.ue.centos.7.6.1810 \
--build-arg build_base=${BASE_IMAGENAME}_centos.7.6.1810 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
# docker build $(DOCKER_BUILD_ARGS) \
# --target ${GNB_NAME} \
# --tag ${GNB_IMAGENAME} \
# --file Dockerfile.gnb \
# --build-arg build_base=${BASE_IMAGENAME} \
# --build-arg org_label_schema_version="${VERSION}" \
# --build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
# --build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
# --build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
# --build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
# .
docker-build-ubuntu-1604:
docker build $(DOCKER_BUILD_ARGS) \
--target ${BASE_NAME} \
--tag ${BASE_IMAGENAME}_ubuntu.16.04 \
--file Dockerfile.base.ubuntu.16.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${ENB_NAME} \
--tag ${ENB_IMAGENAME}_ubuntu.16.04 \
--file Dockerfile.enb.ubuntu.16.04 \
--build-arg build_base=${BASE_IMAGENAME}_ubuntu.16.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${UE_NAME} \
--tag ${UE_IMAGENAME}_ubuntu.16.04 \
--file Dockerfile.ue.ubuntu.16.04 \
--build-arg build_base=${BASE_IMAGENAME}_ubuntu.16.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker-build-ubuntu-1804:
docker build $(DOCKER_BUILD_ARGS) \
--target ${BASE_NAME} \
--tag ${BASE_IMAGENAME}_ubuntu.18.04 \
--file Dockerfile.base.ubuntu.18.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${UE_NAME} \
--tag ${UE_IMAGENAME}_ubuntu.18.04 \
--file Dockerfile.ue.ubuntu.18.04 \
--build-arg build_base=${BASE_IMAGENAME}_ubuntu.18.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker build $(DOCKER_BUILD_ARGS) \
--target ${ENB_NAME} \
--tag ${ENB_IMAGENAME}_ubuntu.18.04 \
--file Dockerfile.enb.ubuntu.18.04 \
--build-arg build_base=${BASE_IMAGENAME}_ubuntu.18.04 \
--build-arg org_label_schema_version="${VERSION}" \
--build-arg org_label_schema_vcs_url="${DOCKER_LABEL_VCS_URL}" \
--build-arg org_label_schema_vcs_ref="${DOCKER_LABEL_VCS_REF}" \
--build-arg org_label_schema_build_date="${DOCKER_LABEL_BUILD_DATE}" \
--build-arg org_opencord_vcs_commit_date="${DOCKER_LABEL_COMMIT_DATE}" \
.
docker-push:
docker push ${BASE_IMAGENAME}
docker push ${UE_IMAGENAME}
docker push ${ENB_IMAGENAME}
test: docker-build
.PHONY: docker-build docker-push test
## oai-docker
### Docker images build
* At either ubuntu 16.04 or ubuntu 18.04 host, the following builds softmodem images for ubuntu16.04/18.04 targets
(*) centos targets still in progress
sudo make docker-build-ubuntu-1604
sudo make docker-build-ubuntu-1804
### Container generation
* ubuntu 16.04 target
sudo docker run --net=host --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --env RFSIMULATOR=enb -it lte-softmodem:1.0.0_ubuntu.16.04 ran_build/build/lte-softmodem -O ../ci-scripts/conf_files/lte-fdd-mbms-basic-sim.conf --rfsim --noS1 --nokrnmod 1
* ubuntu 18.04 target
sudo docker run --net=host --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --env RFSIMULATOR=enb -it lte-softmodem:1.0.0_ubuntu.18.04 ran_build/build/lte-softmodem -O ../ci-scripts/conf_files/lte-fdd-mbms-basic-sim.conf --rfsim --noS1 --nokrnmod 1
## Authors
* **Javier Morgade** (javier.morgade@ieee.org) - *Initial work* - [opencord](https://github.com/opencord/openairinterface.git)
## Acknowledgements
* Work based on a set of dockerfiles inherited from [opencord](https://github.com/opencord/openairinterface.git)
diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai
index 6f4d560..68c75e7 100755
--- a/cmake_targets/build_oai
+++ b/cmake_targets/build_oai
@@ -633,13 +633,13 @@ function main() {
$build_dir coding \
libcoding.so $dbin/libcoding.so
- compilations \
- $build_dir nasmesh \
- CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesh.ko
+ #compilations \
+ # $build_dir nasmesh \
+ # CMakeFiles/nasmesh/nasmesh.ko $dbin/nasmesh.ko
- compilations \
- $build_dir rb_tool \
- rb_tool $dbin/rb_tool
+ #compilations \
+ # $build_dir rb_tool \
+ # rb_tool $dbin/rb_tool
cp $OPENAIR_DIR/cmake_targets/tools/init_nas_nos1 $dbin
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment