-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
79 lines (67 loc) · 1.38 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
### "from"
FROM ubuntu:latest
MAINTAINER Ana Nelson <[email protected]>
### "localedef"
RUN locale-gen en_US.UTF-8
### "apt-defaults"
RUN echo "APT::Get::Assume-Yes true;" >> /etc/apt/apt.conf.d/80custom ; \
echo "APT::Get::Quiet true;" >> /etc/apt/apt.conf.d/80custom ; \
apt-get update
### "utils"
RUN apt-get install \
ack-grep \
adduser \
build-essential \
curl \
git \
man-db \
pkg-config \
rsync \
strace \
sudo \
tree \
unzip \
vim \
wget \
;
### "python"
RUN apt-get install \
python-dev \
python-pip \
;
### "asciidoctor"
RUN apt-get install \
ruby1.9.1 \
ruby1.9.1-dev \
; \
gem install \
asciidoctor \
pygments.rb \
;
### "matplotlib"
RUN apt-get install \
libfreetype6-dev \
libpng-dev \
; \
pip install matplotlib
### "dexy"
RUN pip install dexy
### "dev-dexy"
WORKDIR /tmp
RUN echo "dirty2"; \
git clone https://github.com/dexy/dexy && \
cd dexy && \
pip install -e .
### "research"
RUN pip install simpy
### "create-user"
RUN useradd -m repro && \
echo "repro:password" | chpasswd ; \
echo "repro ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/repro
### "activate-user"
ENV HOME /home/repro
USER repro
WORKDIR /home/repro
### "run"
ADD run.sh /home/repro/run.sh
CMD ["/bin/bash", "/home/repro/run.sh"]