blob: 99dfc3520b62110f62810a218f878205ed0a8b0b [file] [log] [blame]
ss412g07ef76d2019-08-12 17:26:40 +03001##############################################################################
2#
3# Copyright (c) 2019 AT&T Intellectual Property.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17##############################################################################
nm755n15d39822019-11-28 16:56:00 +000018#
19# This source code is part of the near-RT RIC (RAN Intelligent Controller)
20# platform project (RICP).
21#
ss412g07ef76d2019-08-12 17:26:40 +030022
ss412gefcb4522019-12-02 16:59:19 +020023FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:3-u16.04-nng as ubuntu
ss412g07ef76d2019-08-12 17:26:40 +030024
25WORKDIR /opt/E2Manager
26COPY . .
ss412g07ef76d2019-08-12 17:26:40 +030027
Lott, Christopher (cl778h)b23d04b2020-02-13 09:41:21 -050028# Install dependencies, compile and test the module
29RUN bash build-e2mgr-ubuntu.sh
ss412g07ef76d2019-08-12 17:26:40 +030030
Lott, Christopher (cl778h)b23d04b2020-02-13 09:41:21 -050031# Build deployable container
ss412g07ef76d2019-08-12 17:26:40 +030032FROM ubuntu:16.04
ss412gde190682019-10-24 09:29:26 +030033
34RUN apt-get update && apt-get install -y \
35 net-tools \
36 iputils-ping \
37 curl \
38 tcpdump
39
ss412g07ef76d2019-08-12 17:26:40 +030040COPY --from=ubuntu /opt/E2Manager/router.txt /opt/E2Manager/router.txt
ss412gde190682019-10-24 09:29:26 +030041COPY --from=ubuntu /opt/E2Manager/main /opt/E2Manager/main
ss412g63249262020-01-08 10:35:01 +020042COPY --from=ubuntu /opt/E2Manager/resources/configuration.yaml /opt/E2Manager/resources/configuration.yaml
43COPY --from=ubuntu /opt/E2Manager/resources/rmr.verbose /tmp/rmr.verbose
ss412g07ef76d2019-08-12 17:26:40 +030044COPY --from=ubuntu /usr/local/lib/librmr_nng.so.1 /usr/local/lib/librmr_nng.so.1
45COPY --from=ubuntu /usr/local/lib/libnng.so.1 /usr/local/lib/libnng.so.1
46WORKDIR /opt/E2Manager
47ENV LD_LIBRARY_PATH=/usr/local/lib \
48 port=3800
49ENV RMR_SEED_RT=router.txt
ss412g63249262020-01-08 10:35:01 +020050ENV RMR_VCTL_FILE=/tmp/rmr.verbose
ss412g07ef76d2019-08-12 17:26:40 +030051EXPOSE 3800
ss412gde190682019-10-24 09:29:26 +030052CMD ["sh", "-c", "./main -port=$port"]