-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
72 lines (62 loc) · 1.75 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Impoting Gene Ontology (GO), Human Phenotype Ontology (HPO) and HPO annotation into Virtuoso
#
# version 0.1
# This Dockerfile is based on inutano/virtioso
# MAINTAINER Tazro Inutano Ohta, inutano@gmail.com
# installing Virtuoso VERSION 0.1
# Pull base image.
FROM dockerfile/ubuntu
MAINTAINER MISHIMA, Hiroyuki <missy@be.to>
# Set UTF-8 locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install packages.
RUN apt-get update && \
apt-get install -y automake gperf libtool flex bison libssl-dev \
build-essential \
curl \
git-core \
libcurl4-openssl-dev \
libreadline-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libyaml-dev \
zlib1g-dev \
nkf && \
rm -rf /var/lib/apt/lists/*
# Install ruby-2.2.2
# based on http://qiita.com/k-shogo/items/592e243f9763d0c3b10a
RUN \
curl -O http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz && \
tar -zxvf ruby-2.2.2.tar.gz && \
cd ruby-2.2.2 && \
./configure --disable-install-doc && \
make && \
make install && \
cd .. && \
rm -r ruby-2.2.2 ruby-2.2.2.tar.gz && \
echo 'gem: --no-document' > /usr/local/etc/gemrc
# Install virtuoso
ENV VIRTUOSO_VERSION develop/7
RUN \
cd /tmp && \
git clone https://github.com/openlink/virtuoso-opensource.git && \
cd virtuoso-opensource && \
git checkout $VIRTUOSO_VERSION && \
./autogen.sh && \
export CFLAGS="-O2 -m64" && \
./configure && \
make && \
make install && \
rm -fr /tmp/virtuoso-opensource
# Expose ports.
# - 8890: HTTP
EXPOSE 8890
# Start Virtuoso to import downloaded and converted data
ADD scripts /opt/Ontologies/scripts
ADD samples /opt/Ontologies/samples
CMD ["/bin/bash", "-C", "/opt/Ontologies/scripts/import.sh"]