Bake full-stack toolchain into the web template's Docker image
Provision Coder Templates / provision (push) Successful in 2m20s
Provision Coder Templates / provision (push) Successful in 2m20s
templates/web (Coder's "Web Applications" profile) previously just pulled codercom/enterprise-base:ubuntu and installed Bun at workspace start. Add a Dockerfile that builds a complete dev image: build-essential/clang/llvm, Tauri 2 / WebKit GUI prerequisites, Postgres/Redis/SQLite CLI clients, protobuf-compiler, Python 3 + OpenCV/ONNX/CPU-torch, Node LTS + Bun/pnpm/ yarn, and a full Rust toolchain via rustup (rustfmt/clippy/rust-analyzer/ rust-src, musl+gnu x86_64/aarch64 targets, cargo-watch/cargo-edit/cross/ bacon) under a passwordless-sudo `coder` user. main.tf now builds this Dockerfile via the docker provider's `docker_image` resource (context = the template's own directory, tag keyed on the Dockerfile's hash) instead of pulling the generic base image, and drops the now-redundant standalone Bun-install coder_script since Bun ships baked into the image and lands in the persistent home volume via Docker's normal empty-volume-populated-from-image behavior. Also add rust-analyzer and Tauri extensions to profile.code-profile, which was otherwise all web/Vue tooling with nothing for the new Rust/Tauri side of the stack.
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user