Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .config/mise/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
min_version = "2026.4.22"
min_version = "2026.6.13"

[env]
TURBO_GLOBAL_WARNING_DISABLED = 1
_.file = [".env", ".env.local"]

[settings]
idiomatic_version_file_enable_tools = ["rust"]
lockfile = true
Comment thread
TimDiekmann marked this conversation as resolved.
minimum_release_age = "5d"

[tools]
Expand Down
242 changes: 242 additions & 0 deletions .config/mise/mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Install these on the host first:
- **[Docker](https://docs.docker.com/get-docker/)** (β‰₯ 20.10), including:
- **[Docker Compose](https://docs.docker.com/compose/)** (β‰₯ 2.17) β€” orchestrates the stack
- **[Docker Buildx](https://docs.docker.com/build/install-buildx/)** (β‰₯ 0.10) β€” builds the images
- **[mise](https://mise.jdx.dev/)** (β‰₯ 2026.4.22) β€” installs and pins Node, Rust, protoc and the other required tool versions
- **[mise](https://mise.jdx.dev/)** (β‰₯ 2026.6.13) β€” installs and pins Node, Rust, protoc and the other required tool versions

Give Docker at least **8 GB RAM** (Preferences β†’ Resources) and keep ~15 GB of disk free for build artefacts, images and volumes.

Expand All @@ -80,7 +80,7 @@ git --version # β‰₯ 2.17
docker --version # β‰₯ 20.10
docker compose version # β‰₯ 2.17
docker buildx version # β‰₯ 0.10
mise --version # β‰₯ 2026.4.22
mise --version # β‰₯ 2026.6.13
```

#### Setup
Expand Down
17 changes: 11 additions & 6 deletions apps/hash-ai-worker-ts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY .config/mise /etc/mise
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
export MISE_VERSION=2026.4.22 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
export MISE_VERSION=2026.7.0 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
mise --version && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down Expand Up @@ -65,17 +65,22 @@ FROM rust AS builder

WORKDIR /usr/local/src/

# Install system packages and tools before copying the JS dependency manifests
# so this layer stays cached across dependency changes and tools are not
# re-downloaded from upstream sources on every dependency bump.
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc
Comment thread
TimDiekmann marked this conversation as resolved.
Outdated

COPY --from=base /app/out/json/ .
COPY --from=base /app/out/yarn.lock ./yarn.lock
COPY --from=base /app/out/full/.yarn .yarn
COPY --from=base /app/out/full/turbo.json turbo.json

RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java biome npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc && \
yarn install --immutable && \
yarn cache clean

Expand Down
17 changes: 11 additions & 6 deletions apps/hash-api/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COPY .config/mise /etc/mise
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
export MISE_VERSION=2026.4.22 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
export MISE_VERSION=2026.7.0 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
mise --version && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down Expand Up @@ -65,17 +65,22 @@ FROM rust AS builder

WORKDIR /usr/local/src/

# Install system packages and tools before copying the JS dependency manifests
# so this layer stays cached across dependency changes and tools are not
# re-downloaded from upstream sources on every dependency bump.
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java oxfmt npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc

COPY --from=base /app/out/json/ .
COPY --from=base /app/out/yarn.lock ./yarn.lock
COPY --from=base /app/out/full/.yarn .yarn
COPY --from=base /app/out/full/turbo.json turbo.json

RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java oxfmt npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc && \
yarn install --immutable && \
yarn cache clean

Expand Down
17 changes: 11 additions & 6 deletions apps/hash-frontend/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY .config/mise /etc/mise
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
export MISE_VERSION=2026.4.22 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
export MISE_VERSION=2026.7.0 MISE_INSTALL_EXT=tar.gz && curl https://mise.run | sh && \
mise --version && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down Expand Up @@ -62,17 +62,22 @@ FROM rust AS builder

WORKDIR /usr/local/src/

# Install system packages and tools before copying the JS dependency manifests
# so this layer stays cached across dependency changes and tools are not
# re-downloaded from upstream sources on every dependency bump.
RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java oxfmt npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc

COPY --from=base /app/out/json/ .
COPY --from=base /app/out/yarn.lock ./yarn.lock
COPY --from=base /app/out/full/.yarn .yarn
COPY --from=base /app/out/full/turbo.json turbo.json

RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \
apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mise install node npm:turbo java oxfmt npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc && \
yarn install --immutable && \
yarn cache clean

Expand Down
2 changes: 1 addition & 1 deletion apps/hash-frontend/vercel-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "Adding wasm32-unknown-unknown target"
rustup target add wasm32-unknown-unknown

echo "Installing prerequisites"
mise install node npm:turbo java biome npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc
mise install node npm:turbo java npm:@redocly/cli cargo-binstall cargo:wasm-pack cargo:wasm-opt protoc

echo "Rust installation completed. Checking versions:"
mise list rust
Expand Down
Loading
Loading