blob: 99d117e532a90cd5c6e569803ee27328c496153f [file] [log] [blame]
Hyunsun Moon9e87a152019-07-27 04:47:46 -06001#
2# Copyright 2019-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16ARG build_base
17
18FROM $build_base AS enb-builder
19WORKDIR /openairinterface5g
20ENV USER=root
21RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --eNB -t ETHERNET -c
22
Hyunsun423c2cb2020-10-28 01:54:41 -050023FROM ubuntu:18.04 AS lte-softmodem
Hyunsun Moon9e87a152019-07-27 04:47:46 -060024RUN apt-get update && apt-get install -y \
25 libssl1.0.0 \
26 libnettle6 \
27 libsctp1 \
28 libforms2 \
29 libprotobuf-c1 \
30 libyaml-0-2 \
31 libconfig9 \
32 dnsutils \
33 iproute2 \
34 iputils-ping \
35 && rm -rf /var/lib/apt/lists/*
36
37WORKDIR /openairinterface5g/cmake_targets
38COPY --from=enb-builder /openairinterface5g/cmake_targets/ .
39
40# Label image
41ARG org_label_schema_version=unknown
42ARG org_label_schema_vcs_url=unknown
43ARG org_label_schema_vcs_ref=unknown
44ARG org_label_schema_build_date=unknown
45ARG org_opencord_vcs_commit_date=unknown
46
47LABEL org.label-schema.schema-version=1.0 \
48 org.label-schema.name=lte-softmodem \
49 org.label-schema.version=$org_label_schema_version \
50 org.label-schema.vcs-url=$org_label_schema_vcs_url \
51 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
52 org.label-schema.build-date=$org_label_schema_build_date \
53 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date