Skip to content

Commit 15d3936

Browse files
committed
Move to docker-compose v3 + Fix variabilzation of the liberty version
1 parent c385b52 commit 15d3936

File tree

9 files changed

+22
-17
lines changed

9 files changed

+22
-17
lines changed

decisionserver/decisionserverruntime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FROMLIBERTY=websphere-liberty:webProfile7
1+
ARG FROMLIBERTY
22
FROM maven:3.5.2-jdk-8-alpine AS builder
33
ARG ODMDOCKERDIR
44
ENV ODMDOCKERDIR $ODMDOCKERDIR

odm-cluster.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ services:
2828
args:
2929
- ODMDOCKERDIR=$ODMDOCKERDIR
3030
- ODMVERSION=$ODMVERSION
31+
- FROMLIBERTY=$FROMLIBERTY
3132
links:
3233
- dbserver
3334
environment:
@@ -45,6 +46,7 @@ services:
4546
args:
4647
- ODMDOCKERDIR=$ODMDOCKERDIR
4748
- ODMVERSION=$ODMVERSION
49+
- FROMLIBERTY=$FROMLIBERTY
4850
links:
4951
- dbserver
5052
- odm-decisionserverconsole
@@ -61,6 +63,7 @@ services:
6163
args:
6264
- ODMDOCKERDIR=$ODMDOCKERDIR
6365
- ODMVERSION=$ODMVERSION
66+
- FROMLIBERTY=$FROMLIBERTY
6467
links:
6568
- dbserver
6669
- odm-decisionserverconsole
@@ -79,6 +82,7 @@ services:
7982
args:
8083
- ODMDOCKERDIR=$ODMDOCKERDIR
8184
- ODMVERSION=$ODMVERSION
85+
- FROMLIBERTY=$FROMLIBERTY
8286
links:
8387
- dbserver
8488
depends_on:

odm-standalone-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
dbserver:
44
image: postgres:9.5.10

odm-standalone-tomcat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
# This following property is defined in the .env file. It's allow to customize your docker images.
44
# ODMVERSION : The Operational Decision Management version

odm-standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
# This following property is defined in the .env file. It's allow to customize your docker images.
44
# ODMVERSION : The Operational Decision Management version

override-derby.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
dbserver:
44
build:
@@ -15,7 +15,7 @@ services:
1515
- DB_TYPE=derby
1616
# DB_TYPE could be set to "derby", "mysql" or "postgres". If it is not set, the PostgreSQL database is used by default.
1717
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.
18-
18+
1919
odm-decisionrunner:
2020
environment:
2121
- DB_TYPE=derby
@@ -32,4 +32,4 @@ services:
3232
environment:
3333
- DB_TYPE=derby
3434
# DB_TYPE could be set to "derby", "mysql" or "postgres". If it is not set, the PostgreSQL database is used by default.
35-
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.
35+
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.

override-mysql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
dbserver:
44
build:
@@ -16,7 +16,7 @@ services:
1616
- DB_TYPE=mysql
1717
# DB_TYPE could be set to "derby", "mysql" or "postgres". If it is not set, the PostgreSQL database is used by default.
1818
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.
19-
19+
2020
odm-decisionrunner:
2121
environment:
2222
- DB_TYPE=mysql
@@ -33,4 +33,4 @@ services:
3333
environment:
3434
- DB_TYPE=mysql
3535
# DB_TYPE could be set to "derby", "mysql" or "postgres". If it is not set, the PostgreSQL database is used by default.
36-
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.
36+
# DB_DRIVER_URL could be used optionally to override the driver that is used by default for a given database.

override-openldap.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22
services:
33
openldap:
44
image: $REPOSITORY/openldap:$ODMVERSION
@@ -45,7 +45,7 @@ services:
4545
- "636:636"
4646
domainname: "example.org" # important: same as hostname
4747
hostname: "example.org"
48-
48+
4949
phpldapadmin:
5050
image: osixia/phpldapadmin:0.7.0
5151
#image: osixia/phpldapadmin:latest
@@ -57,25 +57,25 @@ services:
5757
- "8080:80"
5858
depends_on:
5959
- openldap
60-
60+
6161
odm-decisionserverconsole:
6262
depends_on:
6363
- openldap
6464
volumes:
6565
- ./ldap/auth:/config/auth
66-
66+
6767
odm-decisionrunner:
6868
depends_on:
6969
- openldap
7070
volumes:
7171
- ./ldap/auth:/config/auth
72-
72+
7373
odm-decisionserverruntime:
7474
depends_on:
7575
- openldap
7676
volumes:
7777
- ./ldap/auth:/config/auth
78-
78+
7979
odm-decisioncenter:
8080
depends_on:
8181
- openldap

standalone/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ARG FROMLIBERTY
12
FROM maven:3.5.2-jdk-8-alpine AS builder
23
ARG ODMDOCKERDIR
34
ENV ODMDOCKERDIR $ODMDOCKERDIR
@@ -59,7 +60,7 @@ COPY ./executionserver/lib/jaxws $THIRDPARTY
5960
# End Fix
6061
RUN $SCRIPT/loadFeatures.sh $SCRIPT
6162

62-
FROM websphere-liberty:webProfile7
63+
FROM ${FROMLIBERTY}
6364
ARG ODMDOCKERDIR
6465
ARG ODMVERSION
6566
LABEL maintainer="ODMDev [email protected]"

0 commit comments

Comments
 (0)