Comments (5)
There is the possibilty to customize the language versions in Docker Images : https://unit.nginx.org/installation/#inst-lang-docker. But you need to change
VERSIONS_python ?= 3.11
toVERSIONS_python ?= 3.12
in the makefile, then runmake build-python3.12 VERSION_python=3.12
.
You shouldn't actually need to modify the Makefile as the ?=
means use this value if it's not set, so if you set it from the command line like above, it'll use those values...
These default values are what's used to generate the various docker files in that directory...
So simply doing
$ make build-python3.12 VERSIONS_python=3.12
is enough and produces a dockerfile Dockerfile.python3.12
that only differs from the Python 3.11 dockerfile in versions
diff --git a/Dockerfile.python3.11 b/Dockerfile.python3.12
index b5e81b6c..82e123b4 100644
--- a/Dockerfile.python3.11
+++ b/Dockerfile.python3.12
@@ -1,23 +1,23 @@
-FROM python:3.11-bullseye
+FROM python:3.12-bullseye
-LABEL org.opencontainers.image.title="Unit (python3.11)"
+LABEL org.opencontainers.image.title="Unit (python3.12)"
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
LABEL org.opencontainers.image.url="https://unit.nginx.org"
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
-LABEL org.opencontainers.image.version="1.31.1"
+LABEL org.opencontainers.image.version="1.32.0"
RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev curl pkg-config \
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
&& mkdir -p /usr/src/unit \
&& cd /usr/src/unit \
- && hg clone -u 1.31.1-1 https://hg.nginx.org/unit \
+ && hg clone -u 1.32.0-1 https://hg.nginx.org/unit \
&& cd unit \
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
&& LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
from unit.
oh!, I think there is a typo in the docs then:
from unit.
There is the possibilty to customize the language versions in Docker Images : https://unit.nginx.org/installation/#inst-lang-docker. But you need to change VERSIONS_python ?= 3.11
to VERSIONS_python ?= 3.12
in the makefile, then run make build-python3.12 VERSION_python=3.12
.
from unit.
Hi @cgearing! Glad you like Unit :)
We need to have a discussion Soon about formalizing our language / platform / etc. support intentions, but informally I'd certainly welcome a PR for building Python 3.12 images. Should be a one line change to pkg/docker/template.Dockerfile
followed by a make dockerfiles
in that directory.
from unit.
Good catch! It should be VERSIONS_
from unit.
Related Issues (20)
- CLI: `unitctl edit` should get editor from environment variables HOT 2
- CLI: Filter Docker containers in a more clever way HOT 2
- unable to install unit-http HOT 13
- CLI: instances listening on TCP ports are shown as unix sockets
- Docker: pre-populating state
- OSS-Fuzz: Moving the build upstream HOT 1
- [Epic] Create a new CLI for Unit (unitctl)
- [Epic] Implement observability with OpenTelemetry
- [Epic] Support `Transfer-Encoding: chunked` for all data flows HOT 1
- CLI: New subcommand for restarting applications HOT 1
- CLI: New subcommand for listing applications
- CLI: Include unitctl in our Homebrew and Linux packages
- Chunked: Unit can send data to target from buffers before full stream is received
- OpenTelemetry: Implement distributed tracing for requests
- OpenTelemetry: Implement daemon-wide resource usage metrics
- OpenTelemetry: Ship example Collector and Grafana configurations
- OpenTelemetry: Document usage of metrics / tracing modules
- nodejs: Need to be compatible with non-utf8 text responses
- Couldn't connect to server after install on Ubuntu HOT 1
- I get 503 error with Images and CSS files HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.