X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fdeploy%2Fo-ran-du%2Flocal.Dockerfile;fp=ntsimulator%2Fdeploy%2Fx-ran%2Fubuntu.Dockerfile;h=ae00eb732b7eeba9a118e6764237869661ab5ff8;hp=f5cdd8076e30a08875cf03aff1f3b823e079740e;hb=3bbf9d8a3c81afebcffb2b926cef219336dd53d6;hpb=312a154cc4d60a09596fba8fd1259345e048cdc2 diff --git a/ntsimulator/deploy/x-ran/ubuntu.Dockerfile b/ntsimulator/deploy/o-ran-du/local.Dockerfile similarity index 80% rename from ntsimulator/deploy/x-ran/ubuntu.Dockerfile rename to ntsimulator/deploy/o-ran-du/local.Dockerfile index f5cdd80..ae00eb7 100644 --- a/ntsimulator/deploy/x-ran/ubuntu.Dockerfile +++ b/ntsimulator/deploy/o-ran-du/local.Dockerfile @@ -17,18 +17,16 @@ #### DEVICE #### ################ -FROM nexus3.o-ran-sc.org:10004/o-ran-sc/nts-ng-base:latest +FROM o-ran-sc/nts-ng-base:latest LABEL maintainer="alexandru.stancu@highstreet-technologies.com / adrian.lita@highstreet-technologies.com" # ntsim-ng configuration and deployment COPY ./yang /opt/dev/deploy/yang +COPY ./data /opt/dev/deploy/data COPY ./config.json /opt/dev/ntsim-ng/config/config.json # ntsim-ng init docker -RUN /opt/dev/ntsim-ng/ntsim-ng --docker-init -w /opt/dev/ntsim-ng - -# supervisor configuration -COPY ./supervisord.conf /etc/supervisord.conf +RUN /opt/dev/ntsim-ng/ntsim-ng --container-init -w /opt/dev/ntsim-ng # finishing container build ARG BUILD_DATE @@ -38,6 +36,8 @@ LABEL build-date=$BUILD_DATE EXPOSE 830-929 EXPOSE 21-22 +ENV NTS_FUNCTION_TYPE=NTS_FUNCTION_TYPE_O_RAN_O_DU + # run WORKDIR /opt/dev/workspace -CMD ["sh", "-c", "/usr/bin/supervisord -c /etc/supervisord.conf"] +CMD ["/opt/dev/ntsim-ng/ntsim-ng", "-w/opt/dev/ntsim-ng", "--supervisor"]