-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This now includes support for the 'wasm-wasi-component' module. This targets the upcoming 1.32.0 release which is required by wasm-wasi-component. However of course the 1.32.0 tag doesn't exist yet, so there will be a small window where this image won't build. Signed-off-by: Andrew Clayton <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ 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)" \ | ||
|
@@ -15,7 +15,7 @@ RUN set -ex \ | |
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \ | ||
&& mkdir -p /usr/src/unit \ | ||
&& cd /usr/src/unit \ | ||
&& git clone --depth 1 -b 1.31.1-1 https://github.com/nginx/unit \ | ||
&& git clone --depth 1 -b 1.32.0-1 https://github.com/nginx/unit \ | ||
&& cd unit \ | ||
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \ | ||
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \ | ||
|
@@ -45,7 +45,8 @@ RUN set -ex \ | |
&& make -j $NCPU unitd \ | ||
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \ | ||
&& make clean \ | ||
&& export RUST_VERSION=1.71.0 \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y libclang-dev \ | ||
&& export RUST_VERSION=1.76.0 \ | ||
&& export RUSTUP_HOME=/usr/src/unit/rustup \ | ||
&& export CARGO_HOME=/usr/src/unit/cargo \ | ||
&& export PATH=/usr/src/unit/cargo/bin:$PATH \ | ||
|
@@ -67,12 +68,12 @@ RUN set -ex \ | |
&& make -C pkg/contrib .wasmtime \ | ||
&& install -pm 755 pkg/contrib/wasmtime/target/release/libwasmtime.so /usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ \ | ||
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \ | ||
&& ./configure wasm --include-path=`pwd`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ \ | ||
&& make -j $NCPU wasm-install \ | ||
&& ./configure wasm --include-path=`pwd`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ && ./configure wasm-wasi-component \ | ||
&& make -j $NCPU wasm-install wasm-wasi-component-install \ | ||
&& make clean \ | ||
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules \ | ||
&& ./configure wasm --include-path=`pwd`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ \ | ||
&& make -j $NCPU wasm-install \ | ||
&& ./configure wasm --include-path=`pwd`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ && ./configure wasm-wasi-component \ | ||
&& make -j $NCPU wasm-install wasm-wasi-component-install \ | ||
&& cd \ | ||
&& rm -rf /usr/src/unit \ | ||
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \ | ||
|