refactor: containers

This commit is contained in:
Catriel Müller
2026-02-10 17:32:20 -03:00
parent 7e78fe2e1f
commit c11d3e95d5
6 changed files with 27 additions and 17 deletions
+3 -3
View File
@@ -15,8 +15,8 @@ Images
Build
```
REGISTRY=ghcr.io/anomalyco TAG=24.04 bun ./packages/containers/script/build.ts
REGISTRY=ghcr.io/anomalyco TAG=24.04 bun ./packages/containers/script/build.ts --push
REGISTRY=ghcr.io/Kilo-Org TAG=24.04 bun ./packages/containers/script/build.ts
REGISTRY=ghcr.io/Kilo-Org TAG=24.04 bun ./packages/containers/script/build.ts --push
```
Workflow usage
@@ -26,7 +26,7 @@ jobs:
build-cli:
runs-on: ubuntu-latest
container:
image: ghcr.io/anomalyco/build/bun-node:24.04
image: ghcr.io/Kilo-Org/build/bun-node:24.04
```
Notes
+3 -1
View File
@@ -1,4 +1,6 @@
ARG REGISTRY=ghcr.io/anomalyco
# kilocode_change start
ARG REGISTRY=ghcr.io/Kilo-Org
# kilocode_change end
FROM ${REGISTRY}/build/base:24.04
SHELL ["/bin/bash", "-lc"]
+5 -3
View File
@@ -1,10 +1,12 @@
ARG REGISTRY=ghcr.io/anomalyco
# kilocode_change start
ARG REGISTRY=ghcr.io/Kilo-Org
# kilocode_change end
FROM ${REGISTRY}/build/bun-node:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
docker.io \
pacman-package-manager \
docker.io \
pacman-package-manager \
&& rm -rf /var/lib/apt/lists/*
+3 -1
View File
@@ -1,4 +1,6 @@
ARG REGISTRY=ghcr.io/anomalyco
# kilocode_change start
ARG REGISTRY=ghcr.io/Kilo-Org
# kilocode_change end
FROM ${REGISTRY}/build/bun-node:24.04
ARG RUST_TOOLCHAIN=stable
+6 -4
View File
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url"
const rootDir = fileURLToPath(new URL("../../..", import.meta.url))
process.chdir(rootDir)
const reg = process.env.REGISTRY ?? "ghcr.io/anomalyco"
const reg = process.env.REGISTRY ?? "ghcr.io/Kilo-Org" // kilocode_change
const tag = process.env.TAG ?? "24.04"
const push = process.argv.includes("--push") || process.env.PUSH === "1"
@@ -22,11 +22,13 @@ const images = ["base", "bun-node", "rust", "tauri-linux", "publish"]
const setup = async () => {
if (!push) return
const list = await $`docker buildx ls`.text()
if (list.includes("opencode")) {
await $`docker buildx use opencode`
// kilocode_change start
if (list.includes("kilo")) {
await $`docker buildx use kilo`
return
}
await $`docker buildx create --name opencode --use`
await $`docker buildx create --name kilo --use`
// kilocode_change end
}
await setup()
+7 -5
View File
@@ -1,12 +1,14 @@
ARG REGISTRY=ghcr.io/anomalyco
# kilocode_change start
ARG REGISTRY=ghcr.io/Kilo-Org
# kilocode_change end
FROM ${REGISTRY}/build/rust:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libappindicator3-dev \
libwebkit2gtk-4.1-dev \
librsvg2-dev \
patchelf \
libappindicator3-dev \
libwebkit2gtk-4.1-dev \
librsvg2-dev \
patchelf \
&& rm -rf /var/lib/apt/lists/*