blob: 11fc3b50b6206555e9e7b376cb66711154b57e44 [file] [log] [blame]
Alex Stancuf1d5c912020-11-02 17:34:59 +02001#
2# Copyright 2020 highstreet technologies GmbH and others
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
16################
17#### DEVICE ####
18################
19
Alex Stancu0819caf2020-11-03 16:51:22 +020020FROM nexus3.o-ran-sc.org:10001/o-ran-sc/nts-ng-base:latest
Alex Stancuf1d5c912020-11-02 17:34:59 +020021LABEL maintainer="alexandru.stancu@highstreet-technologies.com / adrian.lita@highstreet-technologies.com"
22
23# ntsim-ng configuration and deployment
24COPY ./yang /opt/dev/deploy/yang
25COPY ./config.json /opt/dev/ntsim-ng/config/config.json
26
27# ntsim-ng init docker
28RUN /opt/dev/ntsim-ng/ntsim-ng --docker-init -w /opt/dev/ntsim-ng
29
30# supervisor configuration
31COPY ./supervisord.conf /etc/supervisord.conf
32
33# finishing container build
34ARG BUILD_DATE
35LABEL build-date=$BUILD_DATE
36
37# add exposed ports
38EXPOSE 830-929
39EXPOSE 21-22
40
41# run
42WORKDIR /opt/dev/workspace
43CMD ["sh", "-c", "/usr/bin/supervisord -c /etc/supervisord.conf"]