Hyunsun Moon | 9e87a15 | 2019-07-27 04:47:46 -0600 | [diff] [blame] | 1 | # |
| 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 | |
Hyunsun | 423c2cb | 2020-10-28 01:54:41 -0500 | [diff] [blame^] | 16 | FROM ubuntu:18.04 AS oai-base |
| 17 | ENV DEBIAN_FRONTEND noninteractive |
Hyunsun Moon | 9e87a15 | 2019-07-27 04:47:46 -0600 | [diff] [blame] | 18 | RUN apt-get update && apt-get install -y \ |
| 19 | sudo \ |
| 20 | vim-common \ |
| 21 | git \ |
| 22 | build-essential \ |
| 23 | cmake \ |
| 24 | && rm -rf /var/lib/apt/lists/* |
| 25 | RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b v1.0.0 |
| 26 | |
| 27 | WORKDIR /openairinterface5g |
| 28 | ENV USER=root |
| 29 | RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I |
| 30 | |
| 31 | ARG org_label_schema_version=unknown |
| 32 | ARG org_label_schema_vcs_url=unknown |
| 33 | ARG org_label_schema_vcs_ref=unknown |
| 34 | ARG org_label_schema_build_date=unknown |
| 35 | ARG org_opencord_vcs_commit_date=unknown |
| 36 | |
| 37 | LABEL org.label-schema.schema-version=1.0 \ |
| 38 | org.label-schema.name=oai-base \ |
| 39 | org.label-schema.version=$org_label_schema_version \ |
| 40 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 41 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 42 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 43 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |