Skip to content

Instantly share code, notes, and snippets.

@mnewswanger
Last active July 26, 2018 18:42
Show Gist options
  • Save mnewswanger/bce3cdef8eafb1d62b203df84faedf20 to your computer and use it in GitHub Desktop.
Save mnewswanger/bce3cdef8eafb1d62b203df84faedf20 to your computer and use it in GitHub Desktop.
rally-docker
#!/bin/bash
docker build -t esrally -f dockerfile .
FROM ubuntu
RUN apt update
RUN apt install -y \
git \
python3-pip
RUN pip3 install \
esrally
RUN useradd -d /home/esrally esrally && \
mkdir /home/esrally && \
chown esrally:esrally /home/esrally /usr/local/bin/esrally
USER esrally
RUN /usr/local/bin/esrally
ENTRYPOINT ["/usr/local/bin/esrally"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment