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
152de2f9
Commit
152de2f9
authored
May 26, 2018
by
Matthieu Muffato
Browse files
Add java to the docker image so that the Java wrapper works out of the box
parent
c2f5404d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
docker/Dockerfile
docker/Dockerfile
+10
-2
No files found.
docker/Dockerfile
View file @
152de2f9
...
...
@@ -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" ]
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