first commit
This commit is contained in:
commit
42a3aab975
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
*~
|
||||||
|
\#*
|
||||||
|
.#*
|
||||||
|
*.bak
|
||||||
|
Dockerfile.*
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "unit"]
|
||||||
|
path = unit
|
||||||
|
url = https://github.com/nginx/unit.git
|
76
Makefile
Normal file
76
Makefile
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
#!/usr/bin/make
|
||||||
|
|
||||||
|
include unit/version
|
||||||
|
|
||||||
|
DEFAULT_RELEASE := 1
|
||||||
|
|
||||||
|
VERSION ?= $(NXT_VERSION)
|
||||||
|
RELEASE ?= $(DEFAULT_RELEASE)
|
||||||
|
CODENAME := buster
|
||||||
|
|
||||||
|
UNIT_VERSION = $(VERSION)-$(RELEASE)~$(CODENAME)
|
||||||
|
|
||||||
|
MODULES = python2.7 python3.5 php7.0 go1.7-dev go1.8-dev perl5.24 ruby2.3 \
|
||||||
|
full minimal
|
||||||
|
|
||||||
|
MODULE_php7.0="unit=$${UNIT_VERSION} unit-php=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_python2.7="unit=$${UNIT_VERSION} unit-python2.7=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_python3.5="unit=$${UNIT_VERSION} unit-python3.5=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_go1.7-dev="unit=$${UNIT_VERSION} unit-go1.7=$${UNIT_VERSION} gcc"
|
||||||
|
|
||||||
|
MODULE_go1.8-dev="unit=$${UNIT_VERSION} unit-go1.8=$${UNIT_VERSION} gcc"
|
||||||
|
|
||||||
|
MODULE_perl5.24="unit=$${UNIT_VERSION} unit-perl=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_ruby2.3="unit=$${UNIT_VERSION} unit-ruby=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_full="unit=$${UNIT_VERSION} unit-php=$${UNIT_VERSION} unit-python2.7=$${UNIT_VERSION} unit-python3.5=$${UNIT_VERSION} unit-perl=$${UNIT_VERSION} unit-ruby=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
MODULE_minimal="unit=$${UNIT_VERSION}"
|
||||||
|
|
||||||
|
export \
|
||||||
|
MODULE_python2.7 \
|
||||||
|
MODULE_python3.5 \
|
||||||
|
MODULE_php7.0 \
|
||||||
|
MODULE_go1.7-dev \
|
||||||
|
MODULE_go1.8-dev \
|
||||||
|
MODULE_perl5.24 \
|
||||||
|
MODULE_ruby2.3 \
|
||||||
|
MODULE_full \
|
||||||
|
MODULE_minimal
|
||||||
|
|
||||||
|
default:
|
||||||
|
@echo "valid targets: all build dockerfiles push clean"
|
||||||
|
|
||||||
|
dockerfiles: $(addprefix Dockerfile., $(MODULES))
|
||||||
|
build: dockerfiles $(addprefix build-,$(MODULES))
|
||||||
|
push: build $(addprefix push-,$(MODULES)) latest
|
||||||
|
|
||||||
|
Dockerfile.%: unit/version
|
||||||
|
@echo "===> Building $@"
|
||||||
|
cat unit/pkg/docker/Dockerfile.tmpl | sed \
|
||||||
|
-e 's,stretch,buster,g' \
|
||||||
|
-e 's,@@UNITPACKAGES@@,$(MODULE_$*),g' \
|
||||||
|
-e 's,@@UNIT_VERSION@@,$(UNIT_VERSION),g' \
|
||||||
|
> $@
|
||||||
|
|
||||||
|
build-%: Dockerfile.%
|
||||||
|
docker build -t unit:$(VERSION)-$* -f Dockerfile.$* .
|
||||||
|
|
||||||
|
push-%:
|
||||||
|
docker tag unit:$(VERSION)-$* nginx/unit:$(VERSION)-$*
|
||||||
|
docker push nginx/unit:$(VERSION)-$*
|
||||||
|
|
||||||
|
latest:
|
||||||
|
docker tag nginx/unit:$(VERSION)-full nginx/unit:latest
|
||||||
|
docker push nginx/unit:latest
|
||||||
|
|
||||||
|
all: $(addprefix Dockerfile., $(MODULES))
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(addprefix Dockerfile., $(MODULES))
|
||||||
|
|
||||||
|
.PHONY: default all build dockerfiles latest push clean
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# NGINX Unit Docker images
|
||||||
|
|
||||||
|
Debian Buster-based Docker images for NGINX Unit
|
1
unit
Submodule
1
unit
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 26fcb461370062aa11f78f77c5e022c817e6e7c1
|
Loading…
x
Reference in New Issue
Block a user