Makefile (1786:20d0c8553094) Makefile (1957:7a0ec2889c37)
1#!/usr/bin/make
2
3include ../../version
4include ../shasum.mak
5
6DEFAULT_VERSION := $(NXT_VERSION)
7
8VERSION ?= $(DEFAULT_VERSION)
9
10EXPORT_DIR := $(VERSION)
11
12MODULES ?= go jsc node perl php python ruby minimal
13
14VERSION_minimal ?=
1#!/usr/bin/make
2
3include ../../version
4include ../shasum.mak
5
6DEFAULT_VERSION := $(NXT_VERSION)
7
8VERSION ?= $(DEFAULT_VERSION)
9
10EXPORT_DIR := $(VERSION)
11
12MODULES ?= go jsc node perl php python ruby minimal
13
14VERSION_minimal ?=
15CONTAINER_minimal ?= debian:buster-slim
15CONTAINER_minimal ?= debian:bullseye-slim
16CONFIGURE_minimal ?=
17INSTALL_minimal ?= version
18define COPY_minimal
19endef
20
16CONFIGURE_minimal ?=
17INSTALL_minimal ?= version
18define COPY_minimal
19endef
20
21VERSION_go ?= 1.15
21VERSION_go ?= 1.17
22CONTAINER_go ?= golang:$(VERSION_go)
23CONFIGURE_go ?= go --go-path=$$GOPATH
24INSTALL_go ?= go-install-src libunit-install
25define COPY_go
26COPY --from=BUILDER /usr/lib/x86_64-linux-gnu/libunit.a /usr/lib/x86_64-linux-gnu/\n\$
27COPY --from=BUILDER /usr/include/nxt_* /usr/include/\n\$
28COPY --from=BUILDER /go/src/ /go/src/
29endef
30
31VERSION_jsc ?= 11
32CONTAINER_jsc ?= openjdk:$(VERSION_jsc)-jdk
33CONFIGURE_jsc ?= java --jars=/usr/share/unit-jsc-common/
34INSTALL_jsc ?= java-shared-install java-install
35COPY_jsc = COPY --from=BUILDER /usr/share/unit-jsc-common/ /usr/share/unit-jsc-common/
36
22CONTAINER_go ?= golang:$(VERSION_go)
23CONFIGURE_go ?= go --go-path=$$GOPATH
24INSTALL_go ?= go-install-src libunit-install
25define COPY_go
26COPY --from=BUILDER /usr/lib/x86_64-linux-gnu/libunit.a /usr/lib/x86_64-linux-gnu/\n\$
27COPY --from=BUILDER /usr/include/nxt_* /usr/include/\n\$
28COPY --from=BUILDER /go/src/ /go/src/
29endef
30
31VERSION_jsc ?= 11
32CONTAINER_jsc ?= openjdk:$(VERSION_jsc)-jdk
33CONFIGURE_jsc ?= java --jars=/usr/share/unit-jsc-common/
34INSTALL_jsc ?= java-shared-install java-install
35COPY_jsc = COPY --from=BUILDER /usr/share/unit-jsc-common/ /usr/share/unit-jsc-common/
36
37VERSION_node ?= 15
37VERSION_node ?= 16
38CONTAINER_node ?= node:$(VERSION_node)
39CONFIGURE_node ?= nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp
40INSTALL_node ?= node node-install libunit-install
41define COPY_node
42COPY --from=BUILDER /usr/lib/x86_64-linux-gnu/libunit.a /usr/lib/x86_64-linux-gnu/\n\$
43COPY --from=BUILDER /usr/include/nxt_* /usr/include/\n\$
44COPY --from=BUILDER /usr/local/lib/node_modules/unit-http/ /usr/local/lib/node_modules/unit-http/
45endef
46
38CONTAINER_node ?= node:$(VERSION_node)
39CONFIGURE_node ?= nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp
40INSTALL_node ?= node node-install libunit-install
41define COPY_node
42COPY --from=BUILDER /usr/lib/x86_64-linux-gnu/libunit.a /usr/lib/x86_64-linux-gnu/\n\$
43COPY --from=BUILDER /usr/include/nxt_* /usr/include/\n\$
44COPY --from=BUILDER /usr/local/lib/node_modules/unit-http/ /usr/local/lib/node_modules/unit-http/
45endef
46
47VERSION_perl ?= 5.32
47VERSION_perl ?= 5.34
48CONTAINER_perl ?= perl:$(VERSION_perl)
49CONFIGURE_perl ?= perl
50INSTALL_perl ?= perl-install
51COPY_perl =
52
53VERSION_php ?= 8.0
54CONTAINER_php ?= php:$(VERSION_php)-cli
55CONFIGURE_php ?= php
56INSTALL_php ?= php-install
57COPY_php = RUN ldconfig
58
59VERSION_python ?= 3.9
60CONTAINER_python ?= python:$(VERSION_python)
61CONFIGURE_python ?= python --config=/usr/local/bin/python3-config
62INSTALL_python ?= python3-install
63COPY_python =
64
48CONTAINER_perl ?= perl:$(VERSION_perl)
49CONFIGURE_perl ?= perl
50INSTALL_perl ?= perl-install
51COPY_perl =
52
53VERSION_php ?= 8.0
54CONTAINER_php ?= php:$(VERSION_php)-cli
55CONFIGURE_php ?= php
56INSTALL_php ?= php-install
57COPY_php = RUN ldconfig
58
59VERSION_python ?= 3.9
60CONTAINER_python ?= python:$(VERSION_python)
61CONFIGURE_python ?= python --config=/usr/local/bin/python3-config
62INSTALL_python ?= python3-install
63COPY_python =
64
65VERSION_ruby ?= 2.7
65VERSION_ruby ?= 3.0
66CONTAINER_ruby ?= ruby:$(VERSION_ruby)
67CONFIGURE_ruby ?= ruby
68INSTALL_ruby ?= ruby-install
69COPY_ruby = RUN gem install rack
70
71default:
72 @echo "valid targets: all build dockerfiles push tag export clean"
73

--- 46 unchanged lines hidden ---
66CONTAINER_ruby ?= ruby:$(VERSION_ruby)
67CONFIGURE_ruby ?= ruby
68INSTALL_ruby ?= ruby-install
69COPY_ruby = RUN gem install rack
70
71default:
72 @echo "valid targets: all build dockerfiles push tag export clean"
73

--- 46 unchanged lines hidden ---