forked from confluentinc/ducktape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 843 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
# An image of ducktape that can be used to setup a Docker cluster where ducktape is run inside the container.
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y libffi-dev libssl-dev openssh-server python-dev python-pip python-virtualenv && \
virtualenv /opt/ducktape && \
. /opt/ducktape/bin/activate && \
pip install -U pip setuptools wheel && \
pip install bcrypt cryptography==2.2.2 pynacl && \
mkdir /var/run/sshd && \
mkdir /root/.ssh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG DUCKTAPE_VERSION=0.7.3
RUN . /opt/ducktape/bin/activate && \
pip install ducktape==$DUCKTAPE_VERSION && \
ln -s /opt/ducktape/bin/ducktape /usr/local/bin/ducktape && \
deactivate && \
/usr/local/bin/ducktape --version
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]