adjustings after fork
This commit is contained in:
44
Dockerfile
44
Dockerfile
@ -1,52 +1,38 @@
|
||||
FROM ubuntu:16.04
|
||||
FROM i386/debian:wheezy
|
||||
|
||||
MAINTAINER Florian Schüller <florian.schueller@gmail.com>
|
||||
MAINTAINER Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
|
||||
|
||||
# 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
|
||||
ENV GENEWEBSHARE /opt/geneweb/gw
|
||||
|
||||
# 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/*
|
||||
apt-get -y install wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN \
|
||||
cd /tmp && wget --no-check-certificate https://github.com/geneweb/geneweb/releases/download/v5.02/gw-5.02-linux.tar && \
|
||||
tar -xf gw-5.02-linux.tar && \
|
||||
cd /opt && mkdir geneweb && \
|
||||
mv /tmp/distribution/* /opt/geneweb
|
||||
|
||||
# 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
|
||||
RUN chmod a+x /bootstrap.sh
|
||||
|
||||
COPY scripts/README-SETUP.txt /
|
||||
|
||||
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"]
|
||||
|
||||
|
Reference in New Issue
Block a user