blob: d2e3a0bfe957b6c2fc61afcbbaa4bac438e224da [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 ue-builder
19RUN apt-get update && apt-get install -y \
20 linux-headers-`uname -r` \
21 && rm -rf /var/lib/apt/lists/*
22
23WORKDIR /openairinterface5g
24ENV USER=root
25RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai --UE -t ETHERNET -c
26
27FROM ubuntu:16.04 AS lte-uesoftmodem
28RUN apt-get update && apt-get install -y \
29 libssl1.0.0 \
30 libnettle6 \
31 libsctp1 \
32 libforms2 \
33 libconfig9 \
34 libblas3 \
35 liblapacke \
36 sudo \
37 dnsutils \
38 iproute2 \
39 iputils-ping \
40 net-tools \
41 && rm -rf /var/lib/apt/lists/*
42
43WORKDIR /openairinterface5g/cmake_targets
44COPY --from=ue-builder /openairinterface5g/cmake_targets .
45COPY --from=ue-builder /openairinterface5g/targets/bin/nvram .
46COPY --from=ue-builder /openairinterface5g/targets/bin/usim .
47COPY --from=ue-builder /openairinterface5g/targets ../targets
48
49# Label image
50ARG org_label_schema_version=unknown
51ARG org_label_schema_vcs_url=unknown
52ARG org_label_schema_vcs_ref=unknown
53ARG org_label_schema_build_date=unknown
54ARG org_opencord_vcs_commit_date=unknown
55
56LABEL org.label-schema.schema-version=1.0 \
57 org.label-schema.name=lte-uesoftmodem \
58 org.label-schema.version=$org_label_schema_version \
59 org.label-schema.vcs-url=$org_label_schema_vcs_url \
60 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
61 org.label-schema.build-date=$org_label_schema_build_date \
62 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date