-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refine build with JMETER_VERSION ARG and docu
- Loading branch information
Showing
5 changed files
with
142 additions
and
134 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 |
---|---|---|
|
@@ -4,12 +4,10 @@ FROM alpine:3.5 | |
|
||
MAINTAINER Just van den Broecke<[email protected]> | ||
|
||
ENV JMETER_VERSION 3.1 | ||
ARG JMETER_VERSION="3.1" | ||
ENV JMETER_HOME /opt/apache-jmeter-${JMETER_VERSION} | ||
ENV JMETER_BIN ${JMETER_HOME}/bin | ||
ENV JMETER_DOWNLOAD_URL http://mirror.serversupportforum.de/apache/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz | ||
ENV IP 127.0.0.1 | ||
ENV RMI_PORT 1099 | ||
|
||
# Install extra packages | ||
# See https://github.com/gliderlabs/docker-alpine/issues/136#issuecomment-272703023 | ||
|
@@ -22,7 +20,7 @@ RUN apk add --update openjdk7-jre tzdata curl unzip bash | |
# Clean APK cache | ||
RUN rm -rf /var/cache/apk/* | ||
|
||
# download and extract jmeter | ||
# download and extract JMeter | ||
RUN mkdir -p /tmp/dependencies | ||
RUN curl -L --silent ${JMETER_DOWNLOAD_URL} > /tmp/dependencies/apache-jmeter-${JMETER_VERSION}.tgz | ||
RUN mkdir -p /opt | ||
|
@@ -33,12 +31,9 @@ RUN tar -xzf /tmp/dependencies/apache-jmeter-${JMETER_VERSION}.tgz -C /opt && \ | |
# TODO: plugins (later) | ||
# && unzip -oq "/tmp/dependencies/JMeterPlugins-*.zip" -d $JMETER_HOME | ||
|
||
# Set global PATH such that "jmeter" command is found | ||
ENV PATH $PATH:$JMETER_BIN | ||
|
||
# We assume tests and results are passed to entrypoint | ||
# and are external to docker image. | ||
# COPY tests /tests | ||
|
||
# Entrypoint has same signature as "jmeter" command | ||
COPY entrypoint.sh / | ||
|
||
|
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
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 +1,7 @@ | ||
sudo docker build -t="justobjects/jmeter:3.1" . | ||
#!/bin/bash | ||
|
||
JMETER_VERSION="3.1" | ||
|
||
# Example build line | ||
# --build-arg IMAGE_TIMEZONE="Europe/Amsterdam" | ||
sudo docker build --build-arg JMETER_VERSION=${JMETER_VERSION} -t "justobjects/jmeter:${JMETER_VERSION}" . |
Oops, something went wrong.