mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
refactor: containers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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/*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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/*
|
||||
|
||||
Reference in New Issue
Block a user