diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-04-06 20:43:22 -0700 |
commit | 09cd3793aa7dc567384a58cd77aa5b65943722a7 (patch) | |
tree | 7cb9e33bc6a346f870b907a7983bc69cf0d5b0eb /pkg | |
parent | 6ed5f1654e393b537b1070083f082af82b79b7e8 (diff) | |
download | unit-09cd3793aa7dc567384a58cd77aa5b65943722a7.tar.gz unit-09cd3793aa7dc567384a58cd77aa5b65943722a7.tar.bz2 |
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.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/docker/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile index b0a6857c..6c5006bf 100644 --- a/pkg/docker/Makefile +++ b/pkg/docker/Makefile @@ -12,50 +12,59 @@ EXPORT_DIR := $(VERSION) MODULES ?= go jsc node perl php python ruby minimal +VARIANT ?= bullseye + VERSION_minimal ?= -CONTAINER_minimal ?= debian:bullseye-slim +CONTAINER_minimal ?= debian:$(VARIANT)-slim CONFIGURE_minimal ?= INSTALL_minimal ?= version RUN_minimal ?= /bin/true VERSION_go ?= 1.20 -CONTAINER_go ?= golang:$(VERSION_go) +VARIANT_go ?= $(VARIANT) +CONTAINER_go ?= golang:$(VERSION_go)-$(VARIANT_go) CONFIGURE_go ?= go --go-path=$$GOPATH INSTALL_go ?= go-install-src libunit-install RUN_go ?= /bin/true VERSION_jsc ?= 11 -CONTAINER_jsc ?= eclipse-temurin:$(VERSION_jsc)-jdk +VARIANT_jsc ?= jammy +CONTAINER_jsc ?= eclipse-temurin:$(VERSION_jsc)-jdk-$(VARIANT_jsc) CONFIGURE_jsc ?= java --jars=/usr/share/unit-jsc-common/ INSTALL_jsc ?= java-shared-install java-install RUN_jsc ?= /bin/true VERSION_node ?= 18 -CONTAINER_node ?= node:$(VERSION_node) +VARIANT_node ?= $(VARIANT) +CONTAINER_node ?= node:$(VERSION_node)-$(VARIANT_node) CONFIGURE_node ?= nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp INSTALL_node ?= node node-install libunit-install RUN_node ?= /bin/true VERSION_perl ?= 5.36 -CONTAINER_perl ?= perl:$(VERSION_perl) +VARIANT_perl ?= $(VARIANT) +CONTAINER_perl ?= perl:$(VERSION_perl)-$(VARIANT_perl) CONFIGURE_perl ?= perl INSTALL_perl ?= perl-install RUN_perl ?= /bin/true VERSION_php ?= 8.2 -CONTAINER_php ?= php:$(VERSION_php)-cli +VARIANT_php ?= cli-$(VARIANT) +CONTAINER_php ?= php:$(VERSION_php)-$(VARIANT_php) CONFIGURE_php ?= php INSTALL_php ?= php-install RUN_php ?= ldconfig VERSION_python ?= 3.11 -CONTAINER_python ?= python:$(VERSION_python) +VARIANT_python ?= $(VARIANT) +CONTAINER_python ?= python:$(VERSION_python)-$(VARIANT_python) CONFIGURE_python ?= python --config=/usr/local/bin/python3-config INSTALL_python ?= python3-install RUN_python ?= /bin/true VERSION_ruby ?= 3.2 -CONTAINER_ruby ?= ruby:$(VERSION_ruby) +VARIANT_ruby ?= $(VARIANT) +CONTAINER_ruby ?= ruby:$(VERSION_ruby)-$(VARIANT_ruby) CONFIGURE_ruby ?= ruby INSTALL_ruby ?= ruby-install RUN_ruby ?= gem install rack |