-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM alpine:3.13
MAINTAINER Josef (kwart) Cacek <josef.cacek@gmail.com>
ENV SIMULATOR_HOME=/hazelcast-simulator \
SIMULATOR_BRANCH=master \
GDFONTPATH=/usr/share/fonts/truetype/msttcorefonts/
COPY bash.bashrc /root/.bashrc
WORKDIR /root
RUN apk update \
&& apk --no-cache --virtual .fontsinstaller add msttcorefonts-installer fontconfig \
&& update-ms-fonts \
&& fc-cache -f \
&& apk del .fontsinstaller \
&& echo "Installing APK packages" \
&& apk add bash openjdk8 git openssh rsync curl maven gnuplot aws-cli aws-cli-bash-completion python2 zip \
&& echo "Installing Hazelcast Simulator" \
&& wget https://github.com/hazelcast/hazelcast-simulator/archive/${SIMULATOR_BRANCH}.zip \
&& unzip -q ${SIMULATOR_BRANCH}.zip \
&& mvn -f hazelcast-simulator-${SIMULATOR_BRANCH}/pom.xml install -DskipTests -Denforcer.skip -Dcheckstyle.skip \
&& unzip -q hazelcast-simulator-${SIMULATOR_BRANCH}/dist/target/hazelcast-simulator-*-dist.zip -d / \
&& ln -s /hazelcast-simulator-* ${SIMULATOR_HOME} \
&& echo "Clean-up" \
&& rm -rf hazelcast-simulator-${SIMULATOR_BRANCH} \
&& rm -rf /root/.m2 \
&& rm -rf /var/cache/apk/*
CMD ["/bin/bash"]