diff --git a/docker/Dockerfile b/docker/Dockerfile index 586bca07..887813d3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,7 +24,7 @@ COPY opensearch-benchmark-git/ ./opensearch-benchmark-git # Currently we always have the $VERSION arg substituted during prod publishing # Default VERSION=testing to enter test mode based on user inputs. -RUN if [ "$VERSION" = "testing" ] ; then echo Testing; cp -a opensearch-benchmark-git/* ./; ls -l; python3 -m pip install -e . ; python3 -m pip install pytest tox; pytest tests/; \ +RUN if [ "$VERSION" = "testing" ] ; then echo Testing; cp -a opensearch-benchmark-git/* ./; ls -l; python3 -m pip install -e . ; python3 -m pip install pytest tox; \ else echo Production; rm -rf opensearch-benchmark-git; ls -l; python3 -m pip install opensearch-benchmark==$VERSION ; fi @@ -33,6 +33,8 @@ RUN mkdir -p /opensearch-benchmark/.benchmark && \ USER 1000 +RUN if [ "$VERSION" = "testing" ]; then echo Pytest; pytest tests; fi + ARG BUILD_DATE LABEL org.label-schema.schema-version="1.0" \