Commit d353453e authored by Matthieu Muffato's avatar Matthieu Muffato Committed by Marek Szuba
Browse files

[Docker] Build the jar in Docker since the wrapper now expects it to be there

parent 355fe811
...@@ -38,12 +38,17 @@ ADD . /tmp/ensembl-hive ...@@ -38,12 +38,17 @@ ADD . /tmp/ensembl-hive
RUN cd /tmp/ensembl-hive && git clean -d -X -f RUN cd /tmp/ensembl-hive && git clean -d -X -f
RUN rm -rf /tmp/ensembl-hive/.git RUN rm -rf /tmp/ensembl-hive/.git
# Build the Java wrapper
FROM maven:3.6-jdk-12-alpine AS java_builder
COPY --from=repo /tmp/ensembl-hive/wrappers/java /tmp/java_wrapper
RUN cd /tmp/java_wrapper && mvn package
FROM ubuntu:16.04 FROM ubuntu:16.04
# Install some basic utilities # Install some basic utilities
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \ RUN apt-get update -y \
&& apt-get install -y maven curl \ && apt-get install -y curl \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
...@@ -56,6 +61,7 @@ ENV PATH=$JAVA_HOME/bin:$PATH ...@@ -56,6 +61,7 @@ ENV PATH=$JAVA_HOME/bin:$PATH
# Get the repo # Get the repo
COPY --from=repo /tmp/ensembl-hive /repo/ensembl-hive COPY --from=repo /tmp/ensembl-hive /repo/ensembl-hive
COPY --from=java_builder /tmp/java_wrapper/target/eHive-*-jar-with-dependencies.jar /repo/ensembl-hive/wrappers/java/target/
# Install all the dependencies # Install all the dependencies
RUN /repo/ensembl-hive/docker/ \ RUN /repo/ensembl-hive/docker/ \
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