X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fdeploy%2Fo-ran%2Flocal.Dockerfile;fp=ntsimulator%2Fdeploy%2Fnts-manager%2Fubuntu.Dockerfile;h=765bace1d8651b32319ec45e6f20884d7a31c12e;hp=4978e0d903a95184fece762886dc22d84aee6cde;hb=3bbf9d8a3c81afebcffb2b926cef219336dd53d6;hpb=312a154cc4d60a09596fba8fd1259345e048cdc2 diff --git a/ntsimulator/deploy/nts-manager/ubuntu.Dockerfile b/ntsimulator/deploy/o-ran/local.Dockerfile similarity index 71% rename from ntsimulator/deploy/nts-manager/ubuntu.Dockerfile rename to ntsimulator/deploy/o-ran/local.Dockerfile index 4978e0d..765bace 100644 --- a/ntsimulator/deploy/nts-manager/ubuntu.Dockerfile +++ b/ntsimulator/deploy/o-ran/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,13 +36,8 @@ LABEL build-date=$BUILD_DATE EXPOSE 830-929 EXPOSE 21-22 -# host IP address to bind to -ENV NETCONF_NTS_HOST_IP=127.0.0.1 -# starting port for host allocation -ENV NETCONF_NTS_HOST_BASE_PORT=50000 - -ENV DOCKER_ENGINE_VERSION=1.40 +ENV NTS_FUNCTION_TYPE=NTS_FUNCTION_TYPE_O_RAN_FH # 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"]