Commit 152de2f9 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Add java to the docker image so that the Java wrapper works out of the box

parent c2f5404d
......@@ -17,9 +17,16 @@
FROM ubuntu:16.04
# Install git
# Install git and java (taken from https://github.com/dockerfile/java/blob/master/oracle-java8/Dockerfile)
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update -y \
&& apt-get install -y git software-properties-common \
&& (echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections) \
&& add-apt-repository -y ppa:webupd8team/java \
&& apt-get update -y \
&& apt-get install -y oracle-java8-installer ant \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/oracle-jdk8-installer
# Clone the repo
RUN mkdir /repo && git clone -b version/2.5 https://github.com/Ensembl/ensembl-hive.git /repo/ensembl-hive
......@@ -31,6 +38,7 @@ RUN /repo/ensembl-hive/docker/setup_os.Ubuntu-16.04.sh \
ENV EHIVE_ROOT_DIR "/repo/ensembl-hive"
ENV PATH "/repo/ensembl-hive/scripts:$PATH"
ENV PERL5LIB "/repo/ensembl-hive/modules:$PERL5LIB"
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENTRYPOINT [ "/repo/ensembl-hive/scripts/dev/simple_init.py" ]
CMD [ "/bin/bash" ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment