forked from i-Cell-Mobilsoft-Open-Source/docker-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
193 lines (176 loc) · 5.34 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
version: "3.8"
# start build
# docker compose -f /PATH/docker-base/docker-compose.yml build --no-cache
# running Docker in interactive mode
# docker run --rm -it icellmobilsoft/base /bin/bash
# start image
# docker run --rm icellmobilsoft/base
# checking labels
# docker inspect icellmobilsoft/base:1.0.0 | jq -r '.[0].Config.Labels'
services:
# icellmobilsoft/base
base-release:
build:
context: .
dockerfile: dockerfile/bases/base/Dockerfile
args:
BASE_IMAGE: $BASE_IMAGE
image: $DOCKER_IMAGE_BASE
# icellmobilsoft/base-alpine
base-alpine-release:
build:
context: .
dockerfile: dockerfile/bases/base-alpine/Dockerfile
args:
ALPINE_BASE_IMAGE: $ALPINE_BASE_IMAGE
image: $DOCKER_IMAGE_BASE_ALPINE
# icellmobilsoft/base-curl
curl-release:
build:
context: .
dockerfile: dockerfile/bases/curl/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_BASE
image: $DOCKER_IMAGE_CURL
depends_on:
base-release:
condition: service_completed_successfully
# icellmobilsoft/base-java11jre
java11jre-release:
build:
context: .
dockerfile: dockerfile/bases/javajre/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JRE_TEMURIN_IMAGE: $JRE_11_TEMURIN_IMAGE
image: $DOCKER_IMAGE_JAVA11JRE
depends_on:
curl-release:
condition: service_completed_successfully
# icellmobilsoft/base-java17jre
java17jre-release:
build:
context: .
dockerfile: dockerfile/bases/javajre/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JRE_TEMURIN_IMAGE: $JRE_17_TEMURIN_IMAGE
image: $DOCKER_IMAGE_JAVA17JRE
depends_on:
curl-release:
condition: service_completed_successfully
# icellmobilsoft/base-java21jre
java21jre-release:
build:
context: .
dockerfile: dockerfile/bases/javajre/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JRE_TEMURIN_IMAGE: $JRE_21_TEMURIN_IMAGE
image: $DOCKER_IMAGE_JAVA21JRE
depends_on:
curl-release:
condition: service_completed_successfully
##################################
# builder images
##################################
# icellmobilsoft/builder-alpine-runner
alpine-runner-release:
build:
context: .
dockerfile: dockerfile/builder/alpine-runner/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_BASE_ALPINE
image: $DOCKER_IMAGE_ALPINE_RUNNER
depends_on:
base-alpine-release:
condition: service_completed_successfully
# icellmobilsoft/builder-java11-maven
java11-maven-builder:
build:
context: .
dockerfile: dockerfile/builder/javamaven/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JDK_TEMURIN_IMAGE: $JDK_11_TEMURIN_IMAGE
MAVEN_VERSION: $MAVEN_VERSION
MAVEN_SHA: $MAVEN_SHA
image: $DOCKER_IMAGE_JAVA11_MAVEN
depends_on:
curl-release:
condition: service_completed_successfully
# icellmobilsoft/builder-java17-maven
java17-maven-builder:
build:
context: .
dockerfile: dockerfile/builder/javamaven/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JDK_TEMURIN_IMAGE: $JDK_17_TEMURIN_IMAGE
MAVEN_VERSION: $MAVEN_VERSION
MAVEN_SHA: $MAVEN_SHA
image: $DOCKER_IMAGE_JAVA17_MAVEN
depends_on:
curl-release:
condition: service_completed_successfully
# icellmobilsoft/builder-java21-maven
java21-maven-builder:
build:
context: .
dockerfile: dockerfile/builder/javamaven/Dockerfile
args:
BASE_IMAGE: $DOCKER_IMAGE_CURL
JDK_TEMURIN_IMAGE: $JDK_21_TEMURIN_IMAGE
MAVEN_VERSION: $MAVEN_VERSION
MAVEN_SHA: $MAVEN_SHA
image: $DOCKER_IMAGE_JAVA21_MAVEN
depends_on:
curl-release:
condition: service_completed_successfully
# icellmobilsoft/builder-java11-galleon
java11-galleon-builder:
build:
context: .
dockerfile: dockerfile/builder/galleon/Dockerfile
args:
BASE_BUILDER_IMAGE: $DOCKER_IMAGE_JAVA11_MAVEN
GALLEON_VERSION: $GALLEON_VERSION
image: $DOCKER_IMAGE_JAVA11_GALLEON
depends_on:
java11-maven-builder:
condition: service_completed_successfully
# icellmobilsoft/builder-java17-galleon
java17-galleon-builder:
build:
context: .
dockerfile: dockerfile/builder/galleon/Dockerfile
args:
BASE_BUILDER_IMAGE: $DOCKER_IMAGE_JAVA17_MAVEN
GALLEON_VERSION: $GALLEON_VERSION
image: $DOCKER_IMAGE_JAVA17_GALLEON
depends_on:
java17-maven-builder:
condition: service_completed_successfully
# icellmobilsoft/builder-java21-galleon
java21-galleon-builder:
build:
context: .
dockerfile: dockerfile/builder/galleon/Dockerfile
args:
BASE_BUILDER_IMAGE: $DOCKER_IMAGE_JAVA21_MAVEN
GALLEON_VERSION: $GALLEON_VERSION
image: $DOCKER_IMAGE_JAVA21_GALLEON
depends_on:
java21-maven-builder:
condition: service_completed_successfully
# icellmobilsoft/builder-nexus-download
nexus-download-builder:
build:
context: .
dockerfile: dockerfile/builder/nexus-download/Dockerfile
args:
BASE_BUILDER_IMAGE: $DOCKER_IMAGE_CURL
image: $DOCKER_IMAGE_NEXUS_DOWNLOAD
depends_on:
curl-release:
condition: service_completed_successfully