-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 947 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 947 Bytes
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
35
36
37
38
39
40
FROM ubuntu:15.10
RUN apt-get update && apt-get install -y \
openssh-server \
vim \
git \
zsh \
sudo \
net-tools \
iputils-ping \
iperf \
htop \
iftop \
curl \
httpie \
python-pip \
postgresql-client
RUN pip install butterfly
RUN useradd -ms /usr/bin/zsh kaskada && adduser kaskada sudo && echo 'kaskada ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && echo 'kaskada:toolbox' | chpasswd && echo 'Defaults !secure_path' >> /etc/sudoers
RUN echo "LANGUAGE=en_US.UTF-8\nLANG=en_US.UTF-8\nLC_ALL=en_US.UTF-8\nPATH=$PATH:/host/usr/bin:/host/usr/local/bin" >> /etc/environment && locale-gen en_US.UTF-8 && dpkg-reconfigure locales
RUN mkdir /var/run/sshd
ADD run.sh /opt/run.sh
USER kaskada
WORKDIR /home/kaskada
RUN git clone https://github.com/robbyrussell/oh-my-zsh.git .oh-my-zsh
ADD .zshrc .zshrc
ADD .box-name .box-name
EXPOSE 22 57575
VOLUME ["/host/usr", "/var/run/docker.sock"]
ENTRYPOINT ["/bin/bash", "-c", "/opt/run.sh"]