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
689c363c
Commit
689c363c
authored
Aug 08, 2019
by
Matthieu Muffato
Committed by
Marek Szuba
Aug 12, 2019
Browse files
[Docker] Install the CPAN stuff in a stage
Then we don't need to remove the build and dev packages
parent
f860d2cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
docker/Dockerfile
docker/Dockerfile
+15
-7
No files found.
docker/Dockerfile
View file @
689c363c
...
...
@@ -43,15 +43,23 @@ 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
#
Combine everything together
FROM
ubuntu:16.04
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/
#
Dependencies
FROM
ubuntu:16.04
AS os_installer
ADD
docker/setup_os.Ubuntu-16.04.sh /tmp/
RUN
/tmp/setup_os.Ubuntu-16.04.sh
# Install all the dependencies
RUN
/repo/ensembl-hive/docker/setup_os.Ubuntu-16.04.sh
\
&&
/repo/ensembl-hive/docker/setup_cpan.Ubuntu-16.04.sh /repo/ensembl-hive
# In case not all the dependencies have been listed in setup_os.Ubuntu-16.04.sh
FROM
os_installer AS cpan_builder
RUN
apt-get update
-y
RUN
apt-get
install
-y
cpanminus build-essential
ADD
cpanfile /tmp/
RUN
cpanm
--installdeps
--with-recommends
/tmp/
# Bundle everything together
FROM
os_installer
COPY
--from=repo /tmp/ensembl-hive /repo/ensembl-hive
COPY
--from=cpan_builder /usr/local /usr/local
COPY
--from=java_builder /tmp/java_wrapper/target/eHive-*-jar-with-dependencies.jar /repo/ensembl-hive/wrappers/java/target/
ENV
EHIVE_ROOT_DIR "/repo/ensembl-hive"
ENV
PATH "/repo/ensembl-hive/scripts:$PATH"
ENV
PERL5LIB "/repo/ensembl-hive/modules:$PERL5LIB"
...
...
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