adjustings after fork
This commit is contained in:
parent
19b4cac4c5
commit
06dd167563
40
Dockerfile
40
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
|
# This is where your data is
|
||||||
ENV GENEWEBDB /genewebData
|
ENV GENEWEBDB /genewebData
|
||||||
|
ENV GENEWEBSHARE /opt/geneweb/gw
|
||||||
# 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
|
# HTTP Port where geneweb is running
|
||||||
ENV PORT 2317
|
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
|
# Language of interface and setup
|
||||||
ENV LANGUAGE de
|
ENV LANGUAGE de
|
||||||
|
|
||||||
EXPOSE ${PORT}
|
EXPOSE ${PORT}
|
||||||
EXPOSE ${SETUP_PORT}
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get -y install --no-install-recommends gwsetup geneweb && \
|
apt-get -y install wget && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# seems to be some bug of "gwsetup"
|
RUN \
|
||||||
RUN ln -s /usr/bin/gwc2 /usr/share/geneweb/gwc2
|
cd /tmp && wget --no-check-certificate https://github.com/geneweb/geneweb/releases/download/v5.02/gw-5.02-linux.tar && \
|
||||||
RUN ln -s /usr/bin/gwb2ged /usr/share/geneweb/gwb2ged
|
tar -xf gw-5.02-linux.tar && \
|
||||||
RUN ln -s /usr/bin/gwu /usr/share/geneweb/gwu
|
cd /opt && mkdir geneweb && \
|
||||||
RUN ln -s /usr/bin/ged2gwb /usr/share/geneweb/ged2gwb
|
mv /tmp/distribution/* /opt/geneweb
|
||||||
|
|
||||||
|
|
||||||
COPY scripts/bootstrap.sh /
|
COPY scripts/bootstrap.sh /
|
||||||
RUN chmod a+x /bootstrap.sh
|
RUN chmod a+x /bootstrap.sh
|
||||||
|
|
||||||
COPY scripts/start_setup.sh /
|
COPY scripts/README-SETUP.txt /
|
||||||
RUN chmod a+x /start_setup.sh
|
|
||||||
|
|
||||||
VOLUME ${GENEWEBDB}
|
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"]
|
CMD ["/bootstrap.sh"]
|
||||||
|
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2016 Florian Schüller
|
Copyright (c) 2018 Wolfgang Hottgenroth
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
64
README.md
64
README.md
@ -1,64 +0,0 @@
|
|||||||
# docker-geneweb
|
|
||||||
Dockerized installation of [Geneweb](https://en.wikipedia.org/wiki/GeneWeb)
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Usually you want to keep your database so to keep your data in an *existing* directory e.g. `${HOME}/GenealogyData`
|
|
||||||
|
|
||||||
Just run the container:
|
|
||||||
```
|
|
||||||
docker run --env LANGUAGE=de -d --name geneweb -p2316:2316 -p2317:2317 -v ${HOME}/GenealogyData:/genewebData schuellerf/geneweb:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
and go to [http://localhost:2317](http://localhost:2317)
|
|
||||||
|
|
||||||
if you happen to have the git repository you can also execute:
|
|
||||||
```
|
|
||||||
./start.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
**note:** the directory `${HOME}/GenealogyData` has to be a *full path*
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
The setup will be started automatically [http://localhost:2316](http://localhost:2316) if no database can be found
|
|
||||||
|
|
||||||
If you start the container and you already have a database but you want more databases or do some backup you need to start the setup manually like so:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker exec geneweb /start_setup.sh
|
|
||||||
```
|
|
||||||
and then navigate to [http://localhost:2316](http://localhost:2316)
|
|
||||||
|
|
||||||
## Options
|
|
||||||
If you need to change the IP of the Docker host or better, of the PC you want to use the [setup](http://localhost:2316) from
|
|
||||||
you can override the default value by _adding_ the option
|
|
||||||
|
|
||||||
```
|
|
||||||
--env HOST_IP=192.168.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
to the `docker run` mentioned above.
|
|
||||||
|
|
||||||
e.g.
|
|
||||||
```
|
|
||||||
docker run --env HOST_IP=192.168.0.1 --env LANGUAGE=de -d --name geneweb -p2316:2316 -p2317:2317 -v ${HOME}/GenealogyData:/genewebData schuellerf/geneweb:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
## Shutdown
|
|
||||||
|
|
||||||
To shutdown the container just run
|
|
||||||
```
|
|
||||||
docker stop geneweb
|
|
||||||
docker rm geneweb
|
|
||||||
```
|
|
||||||
|
|
||||||
## Backup
|
|
||||||
If you need to do a backup just either backup your data folder (e.g. `${HOME}/GenealogyData`)
|
|
||||||
|
|
||||||
To export the data as "*.ged" file or similar you need to start the "setup" tool
|
|
||||||
|
|
||||||
```
|
|
||||||
docker exec -ti geneweb /start_setup.sh
|
|
||||||
```
|
|
||||||
and then navigate to [http://localhost:2316](http://localhost:2316)
|
|
||||||
|
|
2
build.sh
2
build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
docker build --tag schuellerf/geneweb:latest --tag schuellerf/geneweb:1.0 .
|
docker build --tag wollud1969/geneweb5:latest --tag wollud1969/geneweb5:1.0 .
|
||||||
|
|
||||||
|
|
||||||
|
2
scripts/README-SETUP.txt
Normal file
2
scripts/README-SETUP.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cd /genewebData
|
||||||
|
/opt/geneweb/gw/ged2gwb -f /mnt/nober.ged -o nober > comm.log
|
@ -1,9 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
# no database found - we need the setup
|
|
||||||
if [ $(ls ${GENEWEBDB}/*.gwb 2>/dev/null|wc -l) -eq 0 ]; then
|
|
||||||
/start_setup.sh &
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/gwd -lang${LANGUAGE} -hd${GENEWEBSHARE} -dd${GENEWEBDOC} -bd${GENEWEBDB} -p${PORT}
|
/opt/geneweb/gw/gwd -lang${LANGUAGE} -hd${GENEWEBSHARE} -bd${GENEWEBDB} -p${PORT}
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
pushd ${GENEWEBDB}
|
|
||||||
if [ -n "${HOST_IP}" ]; then
|
|
||||||
echo "${HOST_IP}" > /setup_ips.txt
|
|
||||||
fi
|
|
||||||
gwsetup -p${SETUP_PORT} -gd${GENEWEBSHARE} -lang${LANGUAGE} -log${SETUP_LOGFILE} -only/setup_ips.txt
|
|
||||||
popd
|
|
6
start.sh
6
start.sh
@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p ${HOME}/GenealogyData
|
|
||||||
docker rm docker-geneweb 2>/dev/null
|
|
||||||
docker run -d --name docker-geneweb -p2316:2316 -p2317:2317 -v ${HOME}/GenealogyData:/genewebData schuellerf/geneweb:latest
|
|
Loading…
x
Reference in New Issue
Block a user