Skip to content

Commit 9b92381

Browse files
committed
Get latest opencode
1 parent 061199b commit 9b92381

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

docker/opencode/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM ghcr.io/cachix/devenv/devenv
33
WORKDIR /home/devenv/opencode
44
COPY --chown=1000:1000 devenv.* .
55

6-
# Cache the build stuff
7-
RUN devenv update && devenv build && devenv shell ls
6+
# TODO: This is not enough
7+
RUN devenv shell ls
88

99
ENV OPENCODE_CONFIG=/config/opencode.json
1010
EXPOSE 4096/tcp

docker/opencode/devenv.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,29 @@
120120
"type": "github"
121121
}
122122
},
123+
"nixpkgs-unstable": {
124+
"locked": {
125+
"lastModified": 1768569498,
126+
"owner": "NixOS",
127+
"repo": "nixpkgs",
128+
"rev": "be5afa0fcb31f0a96bf9ecba05a516c66fcd8114",
129+
"type": "github"
130+
},
131+
"original": {
132+
"owner": "NixOS",
133+
"ref": "nixpkgs-unstable",
134+
"repo": "nixpkgs",
135+
"type": "github"
136+
}
137+
},
123138
"root": {
124139
"inputs": {
125140
"devenv": "devenv",
126141
"git-hooks": "git-hooks",
127142
"mk-shell-bin": "mk-shell-bin",
128143
"nix2container": "nix2container",
129144
"nixpkgs": "nixpkgs",
145+
"nixpkgs-unstable": "nixpkgs-unstable",
130146
"pre-commit-hooks": [
131147
"git-hooks"
132148
]

docker/opencode/devenv.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
{ pkgs, ... }: {
1+
{ inputs, pkgs, ... }: let
2+
pkgs-unstable = import inputs.nixpkgs-unstable { system = pkgs.stdenv.system; };
3+
in {
24
languages = {
35
rust.enable = true;
46
python.enable = true;
@@ -12,7 +14,7 @@
1214
};
1315

1416
packages = with pkgs; [
15-
opencode
17+
pkgs-unstable.opencode
1618
ripgrep
1719
fd
1820
curl

docker/opencode/devenv.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
inputs:
2+
nixpkgs:
3+
url: github:cachix/devenv-nixpkgs/rolling
4+
nixpkgs-unstable:
5+
url: github:NixOS/nixpkgs/nixpkgs-unstable
26
mk-shell-bin:
37
url: github:rrbutani/nix-mk-shell-bin
48
nix2container:

envs/network/main.jsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ local globalNetworkPolicy = calico.crd.v1.globalNetworkPolicy;
2626
resources: ['pods/portforward'],
2727
verbs: ['create', 'delete'],
2828
},
29+
{
30+
apiGroups: [''],
31+
resources: ['pods'],
32+
verbs: ['delete'],
33+
},
2934
{
3035
apiGroups: ['apps'],
3136
resources: ['deployments', 'replicasets', 'statefulsets', 'daemonsets'],

0 commit comments

Comments
 (0)