Align O-DU YANG models with latest updates.
[sim/o1-interface.git] / ntsimulator / deploy / o-ran-du / Dockerfile
1 #
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
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"
22
23 # ntsim-ng configuration and deployment
24 COPY ./yang /opt/dev/deploy/yang
25 COPY ./data /opt/dev/deploy/data
26 COPY ./config.json /opt/dev/ntsim-ng/config/config.json
27 COPY ./ves_template.json /opt/dev/ntsim-ng/config/ves_template.json
28
29 # ntsim-ng init docker
30 RUN /opt/dev/ntsim-ng/ntsim-ng --container-init -w /opt/dev/ntsim-ng
31
32 # add exposed ports
33 EXPOSE 830-929
34 EXPOSE 21-22
35
36 ENV NTS_FUNCTION_TYPE=NTS_FUNCTION_TYPE_O_RAN_O_DU
37
38 # run
39 WORKDIR /opt/dev/workspace
40 CMD ["/opt/dev/ntsim-ng/ntsim-ng", "-w/opt/dev/ntsim-ng", "--supervisor"]