-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
59 lines (48 loc) · 1.69 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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y --no-install-recommends locales && \
locale-gen en_US.UTF-8 && \
apt-get dist-upgrade -y && \
apt-get --purge remove openjdk* && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections && \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" > /etc/apt/sources.list.d/webupd8team-java-trusty.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && \
apt-get update && \
apt-get install -y --no-install-recommends oracle-java8-installer oracle-java8-set-default && \
apt-get clean all
RUN apt-get -y install maven
RUN apt-get update
RUN apt-get -y install git
RUN \
apt-get update && \
apt-get install -y python python-dev python-pip python-virtualenv && \
rm -rf /var/lib/apt/lists/*
RUN pip install pip --upgrade
RUN pip install wheel
RUN pip install pandas
RUN pip install GitPython
RUN pip install htmlparser
RUN apt-get update
RUN apt-get install -y python3-pip
RUN python3 -m pip install pip --upgrade
RUN python3 -m pip install GitPython
RUN python3 -m pip install pandas
RUN python3 -m pip install htmlparser
# Install Ruby.
RUN \
apt-get update && \
apt-get install -y ruby
RUN apt-get update
RUN apt-get install vim -y
RUN mkdir /home/ubuntu/
RUN mkdir /home/ubuntu/experiments
COPY *.py /home/ubuntu/experiments/
COPY run.sh /home/ubuntu/experiments
COPY projects.csv /home/ubuntu/experiments
# copy dir with stats and code for metrics
RUN mkdir /home/ubuntu/experiments/metrics
COPY metrics /home/ubuntu/experiments/metrics
# Define working directory.
WORKDIR /home/ubuntu/experiments
# Define default command.
CMD ["bash"]