* Add rust on frontend * Add parser for rust * Handle rust job execution * Main has to return a result that is serializable * Update parser: parse many rust types * Rust parser dependencies * Frontend wasm parser * Add windmill parser rust to windmill parser wasm (temporarily) * Add rust as a tag on worker__default * Change init code for rust * Cleanup rust_executor.rs * Remove tree-sitter dep and fix unused imports * Add lockfile and build logic * Add cargo and rustup to windmill image * Fix env var to work on docker image and dev env * modify package.json * Deps after parser publish * Add stashed migration * Unify rust versions * Add error message when php or cargo are not present to use another image * Error message conditionally on feature flag * all ci/cd changes * all ci/cd changes --------- Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
32 lines
797 B
Plaintext
32 lines
797 B
Plaintext
ARG DEBIAN_IMAGE=debian:bookworm-slim
|
|
|
|
FROM ${DEBIAN_IMAGE} as nsjail
|
|
|
|
WORKDIR /nsjail
|
|
|
|
RUN apt-get -y update \
|
|
&& apt-get install -y \
|
|
bison=2:3.8.* \
|
|
flex=2.6.* \
|
|
g++=4:12.2.* \
|
|
gcc=4:12.2.* \
|
|
git=1:2.39.* \
|
|
libprotobuf-dev=3.21.* \
|
|
libnl-route-3-dev=3.7.* \
|
|
make=4.3-4.1 \
|
|
pkg-config=1.8.* \
|
|
protobuf-compiler=3.21.*
|
|
|
|
|
|
RUN git clone -b master --single-branch https://github.com/google/nsjail.git . && git checkout dccf911fd2659e7b08ce9507c25b2b38ec2c5800
|
|
RUN make
|
|
|
|
FROM ghcr.io/windmill-labs/windmill-ee:dev
|
|
|
|
RUN apt-get update && apt-get install -y libprotobuf-dev libnl-route-3-dev
|
|
|
|
COPY --from=rust:1.80.1 /usr/local/cargo /usr/local/cargo
|
|
COPY --from=rust:1.80.1 /usr/local/rustup /usr/local/rustup
|
|
|
|
COPY --from=nsjail /nsjail/nsjail /bin/nsjail
|