-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
52 lines (36 loc) · 1.26 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
FROM ubuntu:16.04
MAINTAINER Florian Schüller <[email protected]>
# This is where your data is
ENV GENEWEBDB /genewebData
# Location specific to ubuntu installation
ENV GENEWEBSHARE /usr/share/geneweb
# Location specific to ubuntu installation
ENV GENEWEBDOC /usr/share/doc/geneweb
# Temporary logfile used for setup
ENV SETUP_LOGFILE /tmp/setup_log.txt
# HTTP Port where geneweb is running
ENV PORT 2317
# HTTP Port only used for setup purposes (when you don't have a database yet)
ENV SETUP_PORT 2316
# Language of interface and setup
ENV LANGUAGE de
EXPOSE ${PORT}
EXPOSE ${SETUP_PORT}
RUN \
apt-get update && \
apt-get -y install --no-install-recommends gwsetup geneweb && \
rm -rf /var/lib/apt/lists/*
# seems to be some bug of "gwsetup"
RUN ln -s /usr/bin/gwc2 /usr/share/geneweb/gwc2
RUN ln -s /usr/bin/gwb2ged /usr/share/geneweb/gwb2ged
RUN ln -s /usr/bin/gwu /usr/share/geneweb/gwu
RUN ln -s /usr/bin/ged2gwb /usr/share/geneweb/ged2gwb
COPY scripts/bootstrap.sh /
RUN chmod a+x /bootstrap.sh
COPY scripts/start_setup.sh /
RUN chmod a+x /start_setup.sh
VOLUME ${GENEWEBDB}
# The IP of the Docker host - setup needs this to enable access
ENV HOST_IP 172.17.0.1
RUN echo ${HOST_IP} > /setup_ips.txt
CMD ["/bootstrap.sh"]