diff options
author | xuegao <xue.gao@intl.att.com> | 2022-10-17 10:27:31 +0200 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2022-10-24 11:47:57 +0000 |
commit | 9699a8a0c67be4ab264b79aa7968ebfe06e17d7e (patch) | |
tree | 0c11dcc386d918b7e985c4b49480363c291c01dc /test/mocks | |
parent | df00edd68426419d789733699584c051e570a43c (diff) |
Dockerizing simulators
Create docker images for Ran nssmf simulator.
Issue-ID: INT-2162
Signed-off-by: xuegao <xue.gao@intl.att.com>
Change-Id: Ia66c637b24c2422877a6310ecd16946eeda6416c
Signed-off-by: xuegao <xue.gao@intl.att.com>
Diffstat (limited to 'test/mocks')
-rw-r--r-- | test/mocks/ran-nssmf-simulator/Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/mocks/ran-nssmf-simulator/Dockerfile b/test/mocks/ran-nssmf-simulator/Dockerfile new file mode 100644 index 000000000..ed3656a95 --- /dev/null +++ b/test/mocks/ran-nssmf-simulator/Dockerfile @@ -0,0 +1,25 @@ +FROM onap/integration-python:10.0.0 + +USER root + +WORKDIR /home/onap +COPY ./requirements.txt ./ + +RUN python -m pip install --upgrade pip && \ + pip install --no-cache-dir -r requirements.txt + +ENV user=onap group=onap +USER onap + +ENV PATH=$PATH:/home/onap/.local/bin + +COPY --chown=onap:onap main.py /home/onap +COPY --chown=onap:onap setup.py /home/onap +COPY --chown=onap:onap RanNssmfSimulator /home/onap/RanNssmfSimulator + +RUN chmod 770 /home/onap/main.py && \ + chmod 770 /home/onap/setup.py && \ + chmod 770 -R /home/onap/RanNssmfSimulator + +CMD [ "python3", "main.py" ] + |