blob: 25159a0919556eac8d810985341b94a83dbb6efd [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
Hyunsun423c2cb2020-10-28 01:54:41 -050016FROM ubuntu:18.04 AS oai-base
17ENV DEBIAN_FRONTEND noninteractive
Hyunsun Moon9e87a152019-07-27 04:47:46 -060018RUN 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/*
25RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g/ /openairinterface5g -b v1.0.0
26
27WORKDIR /openairinterface5g
28ENV USER=root
29RUN /bin/bash -c "source oaienv" && cd cmake_targets && ./build_oai -I
30
31ARG org_label_schema_version=unknown
32ARG org_label_schema_vcs_url=unknown
33ARG org_label_schema_vcs_ref=unknown
34ARG org_label_schema_build_date=unknown
35ARG org_opencord_vcs_commit_date=unknown
36
37LABEL 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