Project

General

Profile

« Previous | Next » 

Revision b2c1eebc

Added by Andreas Kohlbecker over 5 years ago

ref #6522 fixing problems with ARGs in Dockerfiles and more documentation

View differences:

src/main/docker/production/Dockerfile
25 25
ENV JAVA_OPTIONS="-Dspring.profiles.active=remoting"
26 26

  
27 27
# fixed java options which must not be overwritten
28
ARG JAVA_OPTS="-Xmx$HEAP_SIZE \
28
ENV JAVA_OPTS="-Xmx$HEAP_SIZE \
29 29
    -XX:+UseG1GC -XX:ParallelGCThreads=$CPU_CORES -XX:ConcGCThreads=$CPU_CORES  \
30 30
    -Duser.home=$CDM_HOME $JAVA_OPTIONS"
31 31

  
32
ARG SERVER_ARGS="-forceSchemaUpdate -jmx"
33

  
34
ENV CDMSERVER_ARGS="-httpPort=$CDMSERVER_PORT -logdir=$LOGDIR -datasources $DATASOURCES"
32
ENV SERVER_ARGS="-forceSchemaUpdate -jmx"
33
ENV CDMSERVER_ARGS=" -httpPort=$CDMSERVER_PORT -logdir=$LOGDIR -datasources $DATASOURCES"
35 34

  
36 35
EXPOSE $CDMSERVER_PORT
37 36

  
src/main/docker/production/Dockerfile.dev
18 18
ENV JAVA_OPTIONS="-Dspring.profiles.active=remoting"
19 19

  
20 20
# fixed java options which must not be overwritten
21
ARG JAVA_OPTS="-Xmx$HEAP_SIZE \
21
ENV JAVA_OPTS="-Xmx$HEAP_SIZE \
22 22
    -XX:+UseG1GC -XX:ParallelGCThreads=$CPU_CORES -XX:ConcGCThreads=$CPU_CORES  \
23 23
    -Duser.home=$CDM_HOME $JAVA_OPTIONS"
24 24

  
25
ARG SERVER_ARGS="-forceSchemaUpdate -jmx"
26

  
27
ENV CDMSERVER_ARGS="-httpPort=$CDMSERVER_PORT -logdir=$LOGDIR -datasources $DATASOURCES"
25
ENV SERVER_ARGS="-forceSchemaUpdate -jmx"
26
ENV CDMSERVER_ARGS=" -httpPort=$CDMSERVER_PORT -logdir=$LOGDIR -datasources $DATASOURCES"
28 27

  
29 28
EXPOSE $CDMSERVER_PORT
30 29

  
src/main/docker/production/README.md
48 48
    
49 49
### with docker-compose
50 50

  
51
Run as detached service 
52

  
53
    docker-compose run -d cdmserver
54

  
55
Run and inspect the running container with the bash shell
56

  
57
    docker-compose run cdmserver /bin/bash
58

  
59

  
60

  
51 61
### with maven
52 62

  
53 63
    ...

Also available in: Unified diff