-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from richm/master
allow loader parameters to be passed to container as env vars
- Loading branch information
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
FROM registry.fedoraproject.org/fedora | ||
RUN dnf -y install python | ||
COPY ./loader / | ||
RUN chmod +x /loader | ||
#CMD ["/loader", "--msgpersec=10", "--report-interval=40"] | ||
FROM registry.fedoraproject.org/fedora | ||
|
||
ENV MSGPERSEC=0 REPORT_INTERVAL=10 PAYLOAD_SIZE=1024 \ | ||
DISTRIBUTION=gaussian PAYLOAD_GEN=random \ | ||
STDDEV=32 OUTPUT=stdout REPORT=inline \ | ||
TOTAL_SIZE=0 | ||
|
||
RUN dnf -y install python | ||
COPY ./loader / | ||
RUN chmod +x /loader | ||
# build like this: | ||
# docker build -t loader-container . | ||
# run like this: | ||
# contid=$( docker run -e MSGPERSEC=10 -e STDDEV=16 -d loader-container ) | ||
# docker logs $contid | ||
# docker stop $contid | ||
# docker rm $contid | ||
CMD /loader --msgpersec=${MSGPERSEC} --report-interval=${REPORT_INTERVAL} --total-size=${TOTAL_SIZE} --distribution=${DISTRIBUTION} --payload-gen=${PAYLOAD_GEN} --stddev=${STDDEV} --output=${OUTPUT} --report=${REPORT} ${PAYLOAD_SIZE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters