Skip to content

Commit f05ff4f

Browse files
authored
Merge pull request #152 from richardcase/devbox
2 parents 7c40bd3 + 033fe6d commit f05ff4f

File tree

7 files changed

+267
-3
lines changed

7 files changed

+267
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM jetpackio/devbox:latest
2+
3+
# Installing your devbox project
4+
WORKDIR /code
5+
USER root:root
6+
RUN mkdir -p /code && chown ${DEVBOX_USER}:${DEVBOX_USER} /code
7+
USER ${DEVBOX_USER}:${DEVBOX_USER}
8+
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.json devbox.json
9+
COPY --chown=${DEVBOX_USER}:${DEVBOX_USER} devbox.lock devbox.lock
10+
11+
12+
13+
RUN devbox run -- echo "Installed Packages." && nix-store --gc && nix-store --optimise
14+
15+
RUN devbox shellenv --init-hook >> ~/.profile

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "k3s devbox",
3+
"build": {
4+
"dockerfile": "./Dockerfile",
5+
"context": ".."
6+
},
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2.12.0": {}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"settings": {},
13+
"extensions": [
14+
"jetpack-io.devbox",
15+
"golang.go"
16+
]
17+
}
18+
},
19+
"remoteUser": "devbox"
20+
}

.envrc_sample

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Automatically sets up your devbox environment whenever you cd into this
4+
# directory via our direnv integration:
5+
6+
eval "$(devbox generate direnv --print-envrc)"
7+
8+
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
9+
# for more details

.github/workflows/e2e-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cache: true
2828
- name: Build e2e image
2929
run: make docker-build-e2e
30-
- uses: actions/cache@v4.0.2
30+
- uses: actions/cache@v4
3131
with:
3232
path: |
3333
~/go/pkg/mod
@@ -47,4 +47,4 @@ jobs:
4747
with:
4848
name: e2e-artifacts
4949
path: _artifacts
50-
if-no-files-found: ignore
50+
if-no-files-found: ignore

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: docker/setup-buildx-action@v2
3636

3737
- name: Cache Docker layers
38-
uses: actions/cache@v3
38+
uses: actions/cache@v4
3939
with:
4040
path: /tmp/.buildx-cache
4141
key: ${{ runner.os }}-buildx-${{ matrix.target }}-${{ github.sha }}

devbox.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
3+
"packages": [
4+
5+
"kind@latest",
6+
"tilt@latest",
7+
"envsubst@latest"
8+
],
9+
"shell": {
10+
"init_hook": [
11+
"echo 'Welcome to devbox!' > /dev/null"
12+
],
13+
"scripts": {
14+
"test": [
15+
"echo \"Error: no test specified\" && exit 1"
16+
]
17+
}
18+
}
19+
}

devbox.lock

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"envsubst@latest": {
5+
"last_modified": "2025-03-13T11:38:39Z",
6+
"resolved": "github:NixOS/nixpkgs/573c650e8a14b2faa0041645ab18aed7e60f0c9a#envsubst",
7+
"source": "devbox-search",
8+
"version": "1.4.3",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/pyq4c8gcjvpfwa8fch27mspzv611m2zn-envsubst-1.4.3",
15+
"default": true
16+
}
17+
],
18+
"store_path": "/nix/store/pyq4c8gcjvpfwa8fch27mspzv611m2zn-envsubst-1.4.3"
19+
},
20+
"aarch64-linux": {
21+
"outputs": [
22+
{
23+
"name": "out",
24+
"path": "/nix/store/2ik7cq3z89rifq9kb03bd6bigw5ivvhi-envsubst-1.4.3",
25+
"default": true
26+
}
27+
],
28+
"store_path": "/nix/store/2ik7cq3z89rifq9kb03bd6bigw5ivvhi-envsubst-1.4.3"
29+
},
30+
"x86_64-darwin": {
31+
"outputs": [
32+
{
33+
"name": "out",
34+
"path": "/nix/store/1kv0wdd1cpgcixhqcjl9pk426fin7r91-envsubst-1.4.3",
35+
"default": true
36+
}
37+
],
38+
"store_path": "/nix/store/1kv0wdd1cpgcixhqcjl9pk426fin7r91-envsubst-1.4.3"
39+
},
40+
"x86_64-linux": {
41+
"outputs": [
42+
{
43+
"name": "out",
44+
"path": "/nix/store/r4lf6xkprdxsw2izx9ynjbp1lql682jw-envsubst-1.4.3",
45+
"default": true
46+
}
47+
],
48+
"store_path": "/nix/store/r4lf6xkprdxsw2izx9ynjbp1lql682jw-envsubst-1.4.3"
49+
}
50+
}
51+
},
52+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
53+
"last_modified": "2025-05-02T17:15:29Z",
54+
"resolved": "github:NixOS/nixpkgs/9a7caecf30a0494c88b7daeeed29244cd9a52e7d?lastModified=1746206129&narHash=sha256-JA4DynBKhY7t4DdJZTuomRLAiXFDUgCGGwxgt%2BXGiik%3D"
55+
},
56+
57+
"last_modified": "2024-08-31T10:12:23Z",
58+
"resolved": "github:NixOS/nixpkgs/5629520edecb69630a3f4d17d3d33fc96c13f6fe#go",
59+
"source": "devbox-search",
60+
"version": "1.22.6",
61+
"systems": {
62+
"aarch64-darwin": {
63+
"outputs": [
64+
{
65+
"name": "out",
66+
"path": "/nix/store/bman2jjx2ykfclj3g0wb89cxyzqygh8y-go-1.22.6",
67+
"default": true
68+
}
69+
],
70+
"store_path": "/nix/store/bman2jjx2ykfclj3g0wb89cxyzqygh8y-go-1.22.6"
71+
},
72+
"aarch64-linux": {
73+
"outputs": [
74+
{
75+
"name": "out",
76+
"path": "/nix/store/gnm672jywl1b778ql6pf57xka45452b6-go-1.22.6",
77+
"default": true
78+
}
79+
],
80+
"store_path": "/nix/store/gnm672jywl1b778ql6pf57xka45452b6-go-1.22.6"
81+
},
82+
"x86_64-darwin": {
83+
"outputs": [
84+
{
85+
"name": "out",
86+
"path": "/nix/store/qvr3slzx5av20xkw6i97yz7wla9sf4nc-go-1.22.6",
87+
"default": true
88+
}
89+
],
90+
"store_path": "/nix/store/qvr3slzx5av20xkw6i97yz7wla9sf4nc-go-1.22.6"
91+
},
92+
"x86_64-linux": {
93+
"outputs": [
94+
{
95+
"name": "out",
96+
"path": "/nix/store/6rybf4g5b77kz27k07avr7qd44ssw3l2-go-1.22.6",
97+
"default": true
98+
}
99+
],
100+
"store_path": "/nix/store/6rybf4g5b77kz27k07avr7qd44ssw3l2-go-1.22.6"
101+
}
102+
}
103+
},
104+
"kind@latest": {
105+
"last_modified": "2025-03-11T17:52:14Z",
106+
"resolved": "github:NixOS/nixpkgs/0d534853a55b5d02a4ababa1d71921ce8f0aee4c#kind",
107+
"source": "devbox-search",
108+
"version": "0.27.0",
109+
"systems": {
110+
"aarch64-darwin": {
111+
"outputs": [
112+
{
113+
"name": "out",
114+
"path": "/nix/store/4a41v4iyxw1cbi9jjcqz9sga7ghmfs3x-kind-0.27.0",
115+
"default": true
116+
}
117+
],
118+
"store_path": "/nix/store/4a41v4iyxw1cbi9jjcqz9sga7ghmfs3x-kind-0.27.0"
119+
},
120+
"aarch64-linux": {
121+
"outputs": [
122+
{
123+
"name": "out",
124+
"path": "/nix/store/mn4lxpp4ljwmdbxxf2vsir0qynxknmir-kind-0.27.0",
125+
"default": true
126+
}
127+
],
128+
"store_path": "/nix/store/mn4lxpp4ljwmdbxxf2vsir0qynxknmir-kind-0.27.0"
129+
},
130+
"x86_64-darwin": {
131+
"outputs": [
132+
{
133+
"name": "out",
134+
"path": "/nix/store/s3q5xzg0hhbi23l424gwm91823qawlhz-kind-0.27.0",
135+
"default": true
136+
}
137+
],
138+
"store_path": "/nix/store/s3q5xzg0hhbi23l424gwm91823qawlhz-kind-0.27.0"
139+
},
140+
"x86_64-linux": {
141+
"outputs": [
142+
{
143+
"name": "out",
144+
"path": "/nix/store/dam02bb33zcl468fz2dldiz4r33jli3x-kind-0.27.0",
145+
"default": true
146+
}
147+
],
148+
"store_path": "/nix/store/dam02bb33zcl468fz2dldiz4r33jli3x-kind-0.27.0"
149+
}
150+
}
151+
},
152+
"tilt@latest": {
153+
"last_modified": "2025-04-09T17:27:46Z",
154+
"resolved": "github:NixOS/nixpkgs/67d2b8200c828903b36a6dd0fb952fe424aa0606#tilt",
155+
"source": "devbox-search",
156+
"version": "0.33.21",
157+
"systems": {
158+
"aarch64-darwin": {
159+
"outputs": [
160+
{
161+
"name": "out",
162+
"path": "/nix/store/fb1vxi16lg9grjsqc7rpk1pa26g977ji-tilt-0.33.21",
163+
"default": true
164+
}
165+
],
166+
"store_path": "/nix/store/fb1vxi16lg9grjsqc7rpk1pa26g977ji-tilt-0.33.21"
167+
},
168+
"aarch64-linux": {
169+
"outputs": [
170+
{
171+
"name": "out",
172+
"path": "/nix/store/qg7d2cha5m4yz0s1w5aa4im1lk6wxmg1-tilt-0.33.21",
173+
"default": true
174+
}
175+
],
176+
"store_path": "/nix/store/qg7d2cha5m4yz0s1w5aa4im1lk6wxmg1-tilt-0.33.21"
177+
},
178+
"x86_64-darwin": {
179+
"outputs": [
180+
{
181+
"name": "out",
182+
"path": "/nix/store/5mhjj3jf3m0k41x654caf00yzi699zjg-tilt-0.33.21",
183+
"default": true
184+
}
185+
],
186+
"store_path": "/nix/store/5mhjj3jf3m0k41x654caf00yzi699zjg-tilt-0.33.21"
187+
},
188+
"x86_64-linux": {
189+
"outputs": [
190+
{
191+
"name": "out",
192+
"path": "/nix/store/h40qj7daiic536kghjvjzyw0blnspibi-tilt-0.33.21",
193+
"default": true
194+
}
195+
],
196+
"store_path": "/nix/store/h40qj7daiic536kghjvjzyw0blnspibi-tilt-0.33.21"
197+
}
198+
}
199+
}
200+
}
201+
}

0 commit comments

Comments
 (0)