forked from amsl-project/docker-virtuoso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.24 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
# Pull base image.
FROM ubuntu:12.04
MAINTAINER Namlook <[email protected]>
# Update ubuntu
RUN export DEBIAN_FRONTEND=noninteractive && \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man vim iputils-arping iputils-clockdiff iputils-ping iputils-tracepath traceroute && \
apt-get -y install unzip autoconf automake libtool flex bison gperf gawk m4 make openssl libssl-dev net-tools wget
RUN adduser --disabled-password --home=/home/virtuoso --gecos "" virtuoso
# uncomment if you don't want to download virtuoso each time you build the image.
# Note that the file ./virtuoso-opensource-7.1.0.zip should be in a current directory
# ADD ./virtuoso-opensource-7.1.0.zip /home/virtuoso/
ADD ./install-virtuoso.sh /home/virtuoso/
RUN chmod +x /home/virtuoso/install-virtuoso.sh
RUN chown -R virtuoso:virtuoso /home/virtuoso
WORKDIR /home/virtuoso
RUN su - virtuoso -c "/home/virtuoso/install-virtuoso.sh"
EXPOSE 8890 1111
USER virtuoso
CMD /home/virtuoso/virtuoso/bin/virtuoso-t -f -c /home/virtuoso/virtuoso/var/lib/virtuoso/db/virtuoso.ini