forked from jepsen-io/jepsen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (28 loc) · 825 Bytes
/
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
32
33
34
FROM ubuntu:16.04
MAINTAINER jake@apache.org
ENV LEIN_ROOT true
#
# Jepsen dependencies
#
RUN apt-get -y -q update && \
apt-get -y -q install software-properties-common && \
add-apt-repository ppa:openjdk-r/ppa && \
apt-get -y -q update && \
apt-get install -qqy \
openjdk-8-jdk \
libjna-java \
git \
gnuplot \
wget \
vim # not required by jepsen itself, just for ease of use
RUN wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein && \
mv lein /usr/bin && \
chmod +x /usr/bin/lein && \
lein self-install
# You need to locate jepsen in this directory (up.sh does that automatically)
ADD jepsen /jepsen
RUN cd /jepsen/jepsen && lein install
ADD ./bashrc /root/.bashrc
ADD ./init.sh /init.sh
RUN chmod +x /init.sh
CMD /init.sh