@@ -92,10 +92,10 @@ ENV PATH="/usr/share/tarantool/sdk:${PATH}"
92
92
93
93
// Tarantool Opensource 2.1
94
94
ctx .Tarantool .TarantoolIsEnterprise = false
95
- ctx .Tarantool .TarantoolVersion = "2.1.42"
95
+ ctx .Tarantool .TarantoolVersion = "2.1.42-0-g1fa53afe3 "
96
96
97
97
expLayers = `### Install opensource Tarantool
98
- RUN curl -L https://tarantool.io/installer.sh | VER=2.1 bash \
98
+ RUN curl -L https://tarantool.io/installer.sh | VER=2.1 bash -s -- --type release \
99
99
&& yum -y install tarantool-devel
100
100
`
101
101
@@ -105,10 +105,36 @@ RUN curl -L https://tarantool.io/installer.sh | VER=2.1 bash \
105
105
106
106
// Tarantool Opensource 1.10
107
107
ctx .Tarantool .TarantoolIsEnterprise = false
108
- ctx .Tarantool .TarantoolVersion = "1.10.42"
108
+ ctx .Tarantool .TarantoolVersion = "1.10.42-0-gfa53a1fe3 "
109
109
110
110
expLayers = `### Install opensource Tarantool
111
- RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash \
111
+ RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash -s -- --type release \
112
+ && yum -y install tarantool-devel
113
+ `
114
+
115
+ layers , err = getInstallTarantoolLayers (& ctx )
116
+ assert .Nil (err )
117
+ assert .Equal (expLayers , layers )
118
+
119
+ // Tarantool Opensource 2.10 pre-release
120
+ ctx .Tarantool .TarantoolIsEnterprise = false
121
+ ctx .Tarantool .TarantoolVersion = "2.10.0-beta1-0-g7da4b1438"
122
+
123
+ expLayers = `### Install opensource Tarantool
124
+ RUN curl -L https://tarantool.io/installer.sh | VER=2 bash -s -- --type pre-release \
125
+ && yum -y install tarantool-devel
126
+ `
127
+
128
+ layers , err = getInstallTarantoolLayers (& ctx )
129
+ assert .Nil (err )
130
+ assert .Equal (expLayers , layers )
131
+
132
+ // Tarantool Opensource 2.10
133
+ ctx .Tarantool .TarantoolIsEnterprise = false
134
+ ctx .Tarantool .TarantoolVersion = "2.10.3-0-gb14387da4"
135
+
136
+ expLayers = `### Install opensource Tarantool
137
+ RUN curl -L https://tarantool.io/installer.sh | VER=2 bash -s -- --type release \
112
138
&& yum -y install tarantool-devel
113
139
`
114
140
@@ -218,7 +244,7 @@ func TestGetBuildImageDockerfileTemplateOpensource(t *testing.T) {
218
244
219
245
// Tarantool Opensource 1.10 w/o --build-from
220
246
ctx .Tarantool .TarantoolIsEnterprise = false
221
- ctx .Tarantool .TarantoolVersion = "1.10.42"
247
+ ctx .Tarantool .TarantoolVersion = "1.10.42-0-gfa53a1fe3 "
222
248
ctx .Build .DockerFrom = ""
223
249
224
250
expLayers = `FROM centos:7
@@ -227,7 +253,7 @@ func TestGetBuildImageDockerfileTemplateOpensource(t *testing.T) {
227
253
RUN yum install -y git-core gcc gcc-c++ make cmake unzip
228
254
229
255
### Install opensource Tarantool
230
- RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash \
256
+ RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash -s -- --type release \
231
257
&& yum -y install tarantool-devel
232
258
233
259
### Wrap user
@@ -254,7 +280,7 @@ RUN yum install -y zip
254
280
writeDockerfile (f , baseDockerfileContent )
255
281
256
282
ctx .Tarantool .TarantoolIsEnterprise = false
257
- ctx .Tarantool .TarantoolVersion = "1.10.42"
283
+ ctx .Tarantool .TarantoolVersion = "1.10.42-0-gfa53a1fe3 "
258
284
ctx .Build .DockerFrom = f .Name ()
259
285
260
286
expLayers = `FROM centos:7
@@ -264,7 +290,7 @@ RUN yum install -y zip
264
290
RUN yum install -y git-core gcc gcc-c++ make cmake unzip
265
291
266
292
### Install opensource Tarantool
267
- RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash \
293
+ RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash -s -- --type release \
268
294
&& yum -y install tarantool-devel
269
295
270
296
### Wrap user
@@ -417,7 +443,7 @@ func TestGetRuntimeImageDockerfileTemplateOpensource(t *testing.T) {
417
443
418
444
// Tarantool Opensource 1.10 w/o --from
419
445
ctx .Tarantool .TarantoolIsEnterprise = false
420
- ctx .Tarantool .TarantoolVersion = "1.10.42"
446
+ ctx .Tarantool .TarantoolVersion = "1.10.42-0-gfa53a1fe3 "
421
447
ctx .Pack .DockerFrom = ""
422
448
423
449
expLayers = `FROM centos:7
@@ -428,7 +454,7 @@ RUN groupadd -r -g {{ .TarantoolGID }} tarantool \
428
454
-c "Tarantool Server" tarantool
429
455
430
456
### Install opensource Tarantool
431
- RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash \
457
+ RUN curl -L https://tarantool.io/installer.sh | VER=1.10 bash -s -- --type release \
432
458
&& yum -y install tarantool-devel
433
459
434
460
### Prepare for runtime
@@ -463,7 +489,7 @@ RUN yum install -y zip
463
489
writeDockerfile (f , baseDockerfileContent )
464
490
465
491
ctx .Tarantool .TarantoolIsEnterprise = false
466
- ctx .Tarantool .TarantoolVersion = "1.10.42"
492
+ ctx .Tarantool .TarantoolVersion = "1.10.42-0-gfa53a1fe3 "
467
493
ctx .Pack .DockerFrom = f .Name ()
468
494
469
495
expLayers = `FROM centos:7
0 commit comments