Sign inSign up

gempesaw/gatling-s3cmd

By gempesaw

•Updated over 8 years ago

Image
0

111

gempesaw/gatling-s3cmd repository overview

FROM denvazh/gatling:2.3.0

FROM openjdk:8-jdk-alpine

# install s3cmd
ENV S3CMD_VERSION 1.6.1
RUN apk add --update --no-cache py-pip py-setuptools ca-certificates openssl \
  && pip install --upgrade pip \
  && pip install python-magic \
  && cd /tmp \
  && wget https://github.com/s3tools/s3cmd/releases/download/v${S3CMD_VERSION}/s3cmd-${S3CMD_VERSION}.tar.gz \
  && tar xzf s3cmd-${S3CMD_VERSION}.tar.gz \
  && cd s3cmd-${S3CMD_VERSION} \
  && python setup.py install \
  && rm -rf /var/cache/apk/* /tmp/s3cmd-${S3CMD_VERSION} /tmp/s3cmd-${S3CMD_VERSION}.tar.gz

# copy over gatling and clean out user-files
WORKDIR /opt/gatling
COPY --from=0 /opt/gatling .
RUN rm -rf user-files/simulations/computerdatabase user-files/data/*
VOLUME ["/opt/gatling/conf", "/opt/gatling/results", "/opt/gatling/user-files"]

# set environment variables
ENV PATH /opt/gatling/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV GATLING_HOME /opt/gatling

RUN echo $'if [[ $KUBERNETES_SERVICE_HOST  ]]; then\n\
  s3cmd sync /opt/gatling/results/ s3://$AWS_BUCKET/cloud-readiness/\n\
fi' >> bin/gatling.sh

ENTRYPOINT [ "gatling.sh", "-s", "Cloud*" ]```

Tag summary

Content type

Image

Digest

Size

140 MB

Last updated

over 8 years ago

docker pull gempesaw/gatling-s3cmd:2.3.0