-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (43 loc) · 1.71 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
FROM ubuntu:14.04
ENV CATALINA_HOME /usr/local/tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
RUN mkdir -p "$CATALINA_HOME"
WORKDIR $CATALINA_HOME
# Install essential packages
RUN apt-get update && apt-get install -y \
build-essential \
curl \
maven \
openssh-server \
software-properties-common \
vim \
wget \
htop tree zsh fish \
python-pip groff-base
# Install AWS CLI
RUN pip install awscli
# Install Java 8
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
RUN add-apt-repository -y ppa:webupd8team/java \
&& apt-get update -y \
&& echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections \
&& apt-get install -y oracle-java8-installer \
&& update-java-alternatives -s java-8-oracle \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/oracle-jdk8-installer
# Install Tomcat 8.5.11
RUN cd /tmp && wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.11/bin/apache-tomcat-8.5.11.tar.gz
RUN tar xzvf /tmp/apache-tomcat-8*.tar.gz -C /usr/local/tomcat --strip-components=1
# Download Elucidate 1.4.1
RUN wget -O /opt/elucidate-server.tar.gz https://github.com/dlcs/elucidate-server/archive/1.4.1.tar.gz \
&& mkdir /opt/elucidate \
&& tar -xzvf /opt/elucidate-server.tar.gz --strip-components=1 -C /opt/elucidate
# Compile Elucidate
RUN cd /opt/elucidate/elucidate-parent && mvn clean package install -U \
&& cd ../elucidate-common-lib && mvn clean package install -U \
&& cd ../elucidate-converter && mvn clean package install -U \
&& cd ../elucidate-server && mvn clean package install -U \
&& cp /opt/elucidate/elucidate-server/target/annotation.war /usr/local/tomcat/webapps
COPY run_elucidate.sh /opt/elucidate
EXPOSE 8080