Public Repository

Last pushed: 6 months ago
Short Description
Wrapper for the espas partners client application running on tomcat.
Full Description

Wrapper for the espas partners' client application, running on tomcat.

Using this image

  1. Gather all the configuration files under one directory.
    1.1. dnet-override.properties
    1.2. CSW configuration properties [optional] (i.e. services.wrapper.jdbc.configuration value)
    1.3. SOS configuration properties

  2. Wherever you mention a link to a service beware NOT to use localhost but change that to the ip address of the machine that provides that service.
    For Example change http://localhost:8080/espas/csw to http://[your.host.ip.address]/espas/csw

  3. Change your configuration file dnet-override.properties
    3.1. services.downloadmanager.home=/home/dw
    3.2. services.catalogueservice.home=/home/csw
    NOTE : if this is your first time, inside the local catalogue service home directory there must be the db/ and db/csw directories.

  4. Mount the directories to using the -v tag
    4.1. Mount the configuration directory to /usr/local/tomcat/lib/data
    4.2. Mount the download manager home directory to home/dw
    4.3. Mount the catalogue service home directory to home/csw
    Example all the tags concatenated :
    -v [/your/configuration/path]:/usr/local/tomcat/lib/data -v [/your/downloadmanager/path]:/home.dw -v [your/catalogueservice/path]:/home/csw
    [/your/directory/path] has to be an absolute unix or windows path.

  5. Map the port from the docker container to the port defined in the dnet-override.properties file, value of container.port. The docker container uses only the default 8080 port. This will be defined in the port mapping flag -p [container.port]:8080
    If you are using the default 8080 port define it as -p 8080:8080 else for example -p 8888:8080.

  6. Run it as a daemon with the -d flag EZPZ lemon squeezy

A complete example :
docker run --name espas -v /home/user/configuration:/usr/local/tomcat/lib/data -v /home/user/dw:/home.dw -v /home/user/csw:/home/csw -p 8080:8080 -d espas/wrapper

Using this image with docker-compose

Prior to using docker-compose do not forget to follow steps 1 through 3 in the previous paragraph

Steps 4 and 5 are concluded in one file, make the changes there

docker-compose.yml

version: '2'

services:
  espas:
    container_name: espas
    image: espas/wrapper:latest
    ports:
      - "8080:8080"
    volumes:
      - "/home/user/configuration:/usr/local/tomcat/lib/data"
      - "/home/user/csw:/home/csw"
      - "/home/user/dw:/home/dw"

Start it with docker-compose up -d --- DON'T forget -d for deamon
Delete it with docker-compose down
Restart it with docker-compose restart
Stop it with docker-compose stop

Docker Pull Command
Owner
espas

Comments (0)