2 # Copyright 2020 highstreet technologies GmbH and others
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 FROM nexus3.o-ran-sc.org:10004/o-ran-sc/nts-ng-base:latest
21 LABEL maintainer="alexandru.stancu@highstreet-technologies.com / adrian.lita@highstreet-technologies.com"
23 # ntsim-ng configuration and deployment
24 COPY ./yang /opt/dev/deploy/yang
25 COPY ./config.json /opt/dev/ntsim-ng/config/config.json
27 # ntsim-ng init docker
28 RUN /opt/dev/ntsim-ng/ntsim-ng --docker-init -w /opt/dev/ntsim-ng
30 # supervisor configuration
31 COPY ./supervisord.conf /etc/supervisord.conf
33 # finishing container build
35 LABEL build-date=$BUILD_DATE
41 # host IP address to bind to
42 ENV NETCONF_NTS_HOST_IP=127.0.0.1
43 # starting port for host allocation
44 ENV NETCONF_NTS_HOST_BASE_PORT=50000
46 ENV DOCKER_ENGINE_VERSION=1.40
49 WORKDIR /opt/dev/workspace
50 CMD ["sh", "-c", "/usr/bin/supervisord -c /etc/supervisord.conf"]