Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jul 29, 2024
1 parent c2420de commit abf9fa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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" \
Expand Down

0 comments on commit abf9fa9

Please sign in to comment.