Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
d353453e
Commit
d353453e
authored
Aug 07, 2019
by
Matthieu Muffato
Committed by
Marek Szuba
Aug 12, 2019
Browse files
[Docker] Build the jar in Docker since the wrapper now expects it to be there
parent
355fe811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
docker/Dockerfile
docker/Dockerfile
+7
-1
No files found.
docker/Dockerfile
View file @
d353453e
...
...
@@ -38,12 +38,17 @@ ADD . /tmp/ensembl-hive
RUN
cd
/tmp/ensembl-hive
&&
git clean
-d
-X
-f
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
# Install some basic utilities
ARG
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
-y
\
&&
apt-get
install
-y
maven
curl
\
&&
apt-get
install
-y
curl
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
...
...
@@ -56,6 +61,7 @@ ENV PATH=$JAVA_HOME/bin:$PATH
# Get the repo
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
RUN
/repo/ensembl-hive/docker/setup_os.Ubuntu-16.04.sh
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment