Project

General

Profile

Actions

task #6522

closed

package cdm-server in docker container

Added by Andreas Kohlbecker about 7 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
New
Category:
cdmserver
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Tags:

Description

for easier distribution of the cdm-server it would be advantageous to package the cdm-server into a docker container.

Docker doc:

Running java inside docker containers:

On creating docker containers with maven:

The fabric8io/docker-maven-plugin seems to the the most mature and suitable plugin.

On configuring containers and images via ENV and ARGS, etc: https://vsupalov.com/docker-arg-env-variable-guide

On running a container as a system service, restart policies etc.

==> we should use

docker run -dit --restart unless-stopped  
  • -d, --detach : Run container in background and print container ID
  • -i, --interactive: Keep STDIN open even if not attached
  • -t, --tty: Allocate a pseudo-TTY

  • --restart unless-stopped: Restart the container unless it is explicitly stopped or Docker itself is stopped or restarted.

Deployment

to https://hub.docker.com

Organization for the EDIT Platform:

https://cloud.docker.com/u/cybertaxonomy/

  • organization name: cybertaxonomy
  • owners:
    • kohlbecker
  • repository: cdm-server
  • team : editdev
    • members (so far):
      • kohlbecker
      • jenkinsintbgbm (jenkins-int-AT-bgbm.org)

The cdm-server image is available from https://hub.docker.com/r/cybertaxonomy/cdm-server/

To push images with maven add the following server section to the ~/.m2/settings.xml

    <server>
        <id>docker.io</id>
        <username>username</username>
        <password>S3cr3t</password>
    </server>

Related issues

Related to EDIT - task #5375: cdm-server without jsvcIn ProgressAndreas Kohlbecker

Actions
Related to EDIT - feature request #8082: cdm-server docker image allows running the cdm-server as non root userNewKatja Luther

Actions
Related to EDIT - task #10444: Add integration test with dockerNewAndreas Müller

Actions
Actions

Also available in: Atom PDF