GithubHelp home page GithubHelp logo

riedde / existdb-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterstadler/existdb-docker

0.0 0.0 0.0 49 KB

This is an eXist DB image build on top of an official java-alpine image.

License: MIT License

XSLT 47.09% Shell 33.86% Dockerfile 19.05%

existdb-docker's Introduction

existdb-docker

This is an eXist DB docker image build on top of an official openjdk:8-jre-slim image.

About this image

This image is inspired by davidgaya/docker-eXistDB but adds adjustments to configuration files for development and production purposes.

Second, it is designed to work with TEI files in general—and with the WeGA-WebApp in particular—so the default settings in eXist's conf.xml for whitespace handling and serialization reflect this.

How to build

Navigate into the root directory of this repository and enter:

docker build -t existdb --build-arg VERSION=5.3.1 .

available parameters

  • VERSION: The eXist version to use. Defaults to 5.3.1
  • MAX_MEMORY: The max memory setting for eXist. Defaults to 2048 (megabyte). This can be overwritten when starting a container by adding e.g. -e JAVA_OPTIONS="-Xmx1024m"

How to run

docker run --rm -it \
    -p 8080:8080 \
    --name existdb \
    -v /your/path/to/exist-data:/opt/exist/data \
    -v /your/path/to/exist-logs:/opt/exist/logs \
    -e EXIST_ENV=development \
    -e EXIST_CONTEXT_PATH=/exist \    
    stadlerpeter/existdb:latest    

available parameters

  • EXIST_ENV: This will toggle the modification of configuration files. A value of "production" will remove most servlets and will deny direct access to the REST interface. Default is "development" which will not alter
  • EXIST_CONTEXT_PATH: The eXist context path. Defaults to /exist, which means you'll find eXist at http://localhost:8080/exist/ but you may change this to simply / and your default app will repond at http://localhost:8080/
  • EXIST_DEFAULT_APP_PATH: the database path to your default app, e.g. xmldb:exist:///db/apps/WeGA-WebApp. This default app will respond directly at the $EXIST_CONTEXT_PATH (while all other apps are still available at /apps/).

setting the admin password

The admin password can be supplied via the $EXIST_PASSWORD environment variable or the equivalent Docker secret $EXIST_PASSWORD_FILE. If none of these variables are set (or both contain empty values) a random password will be generated and echoed to the logs.

# docker-compose.yml
version: "3.6"
services:
  existdb:
    image: stadlerpeter/existdb:latest
    ports: 
      - 8080:8080
    environment: 
      - EXIST_PASSWORD_FILE=/run/secrets/existdb_passwd
    restart: unless-stopped
    secrets:
      - source: existdb_passwd
    volumes:
      - existdb_data:/opt/exist/data
secrets:
  existdb_passwd:
    file: /local/path/to/password-file
volumes:
  existdb_data:

License

This Dockerfile is licensed under a MIT license.

eXist is licensed under the GNU Lesser General Public License v2.1.

existdb-docker's People

Contributors

bwbohl avatar peterstadler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.