Giter VIP home page Giter VIP logo

Comments (5)

ac000 avatar ac000 commented on July 26, 2024 1

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.

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.

tclesius avatar tclesius commented on July 26, 2024 1

oh!, I think there is a typo in the docs then:
image

from unit.

tclesius avatar tclesius commented on July 26, 2024

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.

callahad avatar callahad commented on July 26, 2024

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.

ac000 avatar ac000 commented on July 26, 2024

Good catch! It should be VERSIONS_

from unit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.