-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
54 lines (40 loc) · 1.59 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
# docker build -t ubuntu1604py36
FROM ubuntu:16.04
RUN apt-get update
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y install locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install -y python3.6
RUN apt-get install -y python3-pip
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
RUN apt-get install -y python-software-properties
# RUN apt-get install -y default-jre
# RUN apt-get install -y default-jdk
RUN add-apt-repository ppa:openjdk-r/ppa
RUN apt-get update
RUN apt-get install -y openjdk-8-jdk
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
ENV PATH="${PATH}:$JAVA_HOME/bin"
RUN apt-get install -y git maven nano unzip wget subversion sshpass curl
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
WORKDIR /SequenceR
COPY . /SequenceR
RUN pip3 install --upgrade pip==19.1
RUN /SequenceR/src/setup_env.sh
ENV data_path=/SequenceR/data
ENV OpenNMT_py=/SequenceR/src/lib/OpenNMT-py
RUN apt-get install -y libcam-pdf-perl
ENV PERL_MM_USE_DEFAULT 1
RUN git clone https://github.com/rjust/defects4j /SequenceR/src/lib/defects4j
RUN cpan App::cpanminus
RUN cpanm --installdeps /SequenceR/src/lib/defects4j/
RUN /SequenceR/src/lib/defects4j/init.sh
ENV PATH="${PATH}:/SequenceR/src/lib/defects4j/framework/bin"