aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vid/resources/simulators/Dockerfile
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-03-27 18:21:29 +0200
committerIttay Stern <ittay.stern@att.com>2019-03-27 19:06:28 +0200
commitf8af5bf9990febf114573b4672cae78a50005efb (patch)
tree511de6a4e3ba74972bf0ffe3ef52e6f91cd6d735 /tests/vid/resources/simulators/Dockerfile
parent26ed3a83159b3de2d495b0b41495a826d7e8fd8a (diff)
Update VID in docker-compose to 4.0-STAGING-latest
Added AAI simulator for new enrichCloudConfigurationWithCloudOwner feature: - Add AAI response - Update Dockerfile with FROM python, and parametrized config - Add aai-simulator to docker-compose file BTW, modified SO.py to log to stdio. This enable running `docker logs so-simulator` to see the rolling output. Issue-ID: VID-453 Change-Id: Icd1ee2dd51d404261c3e0484b22a4d32b8e4aad8 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'tests/vid/resources/simulators/Dockerfile')
-rw-r--r--tests/vid/resources/simulators/Dockerfile14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/vid/resources/simulators/Dockerfile b/tests/vid/resources/simulators/Dockerfile
index ace6d56d..e6586b1e 100644
--- a/tests/vid/resources/simulators/Dockerfile
+++ b/tests/vid/resources/simulators/Dockerfile
@@ -1,16 +1,12 @@
-FROM alpine:3.9
+FROM python:3-alpine3.9
-RUN apk add --no-cache python3 && \
- python3 -m ensurepip && \
- rm -r /usr/lib/python*/ensurepip && \
- pip3 install --upgrade pip setuptools && \
- if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
- if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
- rm -r /root/.cache
+# `component` should be `so` or `aai`
+ARG component
+ENV component=$component
COPY SO.py /
ADD ./test_data_assets/ /
EXPOSE 8443
-CMD [ "python", "./SO.py", "expected_so_requests.json", "expected_so_responses.json" ]
+CMD python ./SO.py expected_${component}_requests.json expected_${component}_responses.json