Skip to content

Commit a02b12d

Browse files
committed
Docker: specified explicit variants of images to use.
This allows us to decide when to move to a newer underlying distribution version with our pace instead of relying on Docker Hub cadence.
1 parent 3175055 commit a02b12d

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

pkg/docker/Makefile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,59 @@ EXPORT_DIR := $(VERSION)
1212

1313
MODULES ?= go jsc node perl php python ruby minimal
1414

15+
VARIANT ?= bullseye
16+
1517
VERSION_minimal ?=
16-
CONTAINER_minimal ?= debian:bullseye-slim
18+
CONTAINER_minimal ?= debian:$(VARIANT)-slim
1719
CONFIGURE_minimal ?=
1820
INSTALL_minimal ?= version
1921
RUN_minimal ?= /bin/true
2022

2123
VERSION_go ?= 1.20
22-
CONTAINER_go ?= golang:$(VERSION_go)
24+
VARIANT_go ?= $(VARIANT)
25+
CONTAINER_go ?= golang:$(VERSION_go)-$(VARIANT_go)
2326
CONFIGURE_go ?= go --go-path=$$GOPATH
2427
INSTALL_go ?= go-install-src libunit-install
2528
RUN_go ?= /bin/true
2629

2730
VERSION_jsc ?= 11
28-
CONTAINER_jsc ?= eclipse-temurin:$(VERSION_jsc)-jdk
31+
VARIANT_jsc ?= jammy
32+
CONTAINER_jsc ?= eclipse-temurin:$(VERSION_jsc)-jdk-$(VARIANT_jsc)
2933
CONFIGURE_jsc ?= java --jars=/usr/share/unit-jsc-common/
3034
INSTALL_jsc ?= java-shared-install java-install
3135
RUN_jsc ?= /bin/true
3236

3337
VERSION_node ?= 18
34-
CONTAINER_node ?= node:$(VERSION_node)
38+
VARIANT_node ?= $(VARIANT)
39+
CONTAINER_node ?= node:$(VERSION_node)-$(VARIANT_node)
3540
CONFIGURE_node ?= nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp
3641
INSTALL_node ?= node node-install libunit-install
3742
RUN_node ?= /bin/true
3843

3944
VERSION_perl ?= 5.36
40-
CONTAINER_perl ?= perl:$(VERSION_perl)
45+
VARIANT_perl ?= $(VARIANT)
46+
CONTAINER_perl ?= perl:$(VERSION_perl)-$(VARIANT_perl)
4147
CONFIGURE_perl ?= perl
4248
INSTALL_perl ?= perl-install
4349
RUN_perl ?= /bin/true
4450

4551
VERSION_php ?= 8.2
46-
CONTAINER_php ?= php:$(VERSION_php)-cli
52+
VARIANT_php ?= cli-$(VARIANT)
53+
CONTAINER_php ?= php:$(VERSION_php)-$(VARIANT_php)
4754
CONFIGURE_php ?= php
4855
INSTALL_php ?= php-install
4956
RUN_php ?= ldconfig
5057

5158
VERSION_python ?= 3.11
52-
CONTAINER_python ?= python:$(VERSION_python)
59+
VARIANT_python ?= $(VARIANT)
60+
CONTAINER_python ?= python:$(VERSION_python)-$(VARIANT_python)
5361
CONFIGURE_python ?= python --config=/usr/local/bin/python3-config
5462
INSTALL_python ?= python3-install
5563
RUN_python ?= /bin/true
5664

5765
VERSION_ruby ?= 3.2
58-
CONTAINER_ruby ?= ruby:$(VERSION_ruby)
66+
VARIANT_ruby ?= $(VARIANT)
67+
CONTAINER_ruby ?= ruby:$(VERSION_ruby)-$(VARIANT_ruby)
5968
CONFIGURE_ruby ?= ruby
6069
INSTALL_ruby ?= ruby-install
6170
RUN_ruby ?= gem install rack

0 commit comments

Comments
 (0)