Build and publish opencode container image to Forgejo registry #52
Labels
No labels
Monitoring
automation
bug
duplicate
feature
forgejo
help wanted
invalid
k3s
keycloak
ldap
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/homelab#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the remote OpenCode design: an always-on
opencode webserver in theK3s cluster, reachable from a phone via the router's existing Tailscale subnet
route. This issue covers approach A — the container image is built manually on
a laptop and pushed to the Forgejo registry; cluster manifests only reference
the pinned tag.
Tasks
Create
k3s-ha-cluster/opencode/docker/Dockerfile. Basenode:22-slim,pin the current stable
opencode-aiversion at build time:Build and push from the laptop:
Record the pinned version in the Dockerfile
ARGdefault so the tag isreproducible.
Acceptance criteria
git.yukselcloud.com/lab/opencode:v1docker run --rm git.yukselcloud.com/lab/opencode:v1 opencode --versionprints the version as user
opencode