Docker image for running the portal
- git
- ant
- docker
- create dir and enter:
mkdir baudi && cd baudi - clone repos:
git clone [email protected]:Baumann-Digital/portal-app.git && git clone [email protected]:Baumann-Digital/baudi-data.git && git clone [email protected]:Baumann-Digital/baudi-docker.git - build xars:
ant portal-app/build.xml update-baudi-docker && ant portal-app/build.xml update-baudi-docker - create docker image and container:
baudi-docker/build-run-docker.sh
- clone repos in same directory
- portal: https://github.com/Baumann-Digital/portal-app (
git clone [email protected]:Baumann-Digital/portal-app.git) - data: https://github.com/Baumann-Digital/baudi-data (
git clone [email protected]:Baumann-Digital/baudi-data.git) - docker: https://github.com/Baumann-Digital/baudi-docker (
git clone [email protected]:Baumann-Digital/baudi-docker.git)
- portal: https://github.com/Baumann-Digital/portal-app (
- run to build xar-packages for portal and data and copy them to
baudi-docker/autodeployant portal-app/build.xml update-baudi-dockerant baudi-data/build.xml update-baudi-docker
- adjust variables (if necessary) in
baudi-docker/build-run-docker.shimageName: name of the docker imageport: port for the eXist-dbpassword: password for the eXist-db- default
"${1}": set random password
- default
- run
baudi-docker/build-run-docker.sh; this will- check if docker container / image already running / existing and if yes stop / delete it
- build docker-image
- run docker-image
- the eXist-db needs a few seconds to start, then the portal is available here:
http://localhost:8080(if you changed port inbaudi-docker/build-run-docker.shyou need to change it here, too)
- for developers: you can change docker-flags in
baudi-docker/build-run-docker.shs last line--rm(remove): automatically remove the docker-container after it stops-it(interactive terminal): run docker-container with an interactive terminal-d(detached mode): run container as daemon, necessary for production server.--restart=always: (re)start docker-container always, except it's stopped manually. useful on production server. caution: cannot use--rmat the same time.
- the BauDi-Apps expect the eXist-db option
EXIST_CONTEXT_PATH=/. if you use it without the docker-pipeline on a existing eXist-db, you might consider that. - show logs of docker-container:
docker logs baudi-docker