Skip to content

Commit

Permalink
Use docker_start.sh in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyankamal authored and cgoldberg committed Sep 3, 2019
1 parent 99dbe00 commit 246ec42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM python:3.6.6-alpine3.8

RUN apk --no-cache add g++ \
RUN apk --no-cache add g++ \
&& apk --no-cache add zeromq-dev \
&& pip install locustio pyzmq

COPY docker_start.sh docker_start.sh
RUN chmod +x docker_start.sh

EXPOSE 8089 5557 5558

ENTRYPOINT ["/usr/local/bin/locust"]
ENTRYPOINT ["./docker_start.sh"]
2 changes: 1 addition & 1 deletion docker_start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

if [ -z "${TARGET_URL}" ]; then
echo "ERROR: TARGET_URL not configured" >&2
Expand Down

0 comments on commit 246ec42

Please sign in to comment.