blob: 49548839ee304a185a9abe9cfa2ee1c9a6d6f93b [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
16FROM ubuntu:16.04 AS oai-base
17RUN apt-get update && apt-get install -y \
18 sudo \
19 vim-common \
20 git \
21 build-essential \
22 cmake \
23 && rm -rf /var/lib/apt/lists/*
24RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b v1.0.0
25
26WORKDIR /openairinterface5g
27ENV USER=root
28RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I
29
30ARG org_label_schema_version=unknown
31ARG org_label_schema_vcs_url=unknown
32ARG org_label_schema_vcs_ref=unknown
33ARG org_label_schema_build_date=unknown
34ARG org_opencord_vcs_commit_date=unknown
35
36LABEL org.label-schema.schema-version=1.0 \
37 org.label-schema.name=oai-base \
38 org.label-schema.version=$org_label_schema_version \
39 org.label-schema.vcs-url=$org_label_schema_vcs_url \
40 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
41 org.label-schema.build-date=$org_label_schema_build_date \
42 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date