Skip to content

Commit 0c9c9c7

Browse files
committed
initial servicemanager images setup
1 parent db9af31 commit 0c9c9c7

5 files changed

Lines changed: 267 additions & 34 deletions

File tree

Dockerfile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# Build the k6 binary with the extension
2-
FROM golang:1.23.4 as builder
1+
FROM jetpackio/devbox:latest
32

4-
RUN go install go.k6.io/xk6/cmd/xk6@latest
5-
RUN xk6 build --output /k6 --with github.com/GhMartingit/xk6-mongo
6-
#RUN xk6 build --output /k6 --with github.com/mstoykov/xk6-counter
7-
#RUN xk6 build --output /k6 --with github.com/grafana/xk6-sql
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
810

9-
# Use the operator's base image and override the k6 binary
10-
FROM loadimpact/k6:latest
11-
COPY --from=builder /k6 /usr/bin/k6
11+
12+
13+
RUN devbox run -- echo "Installed Packages."
14+
15+
CMD ["devbox", "shell"]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# k6-extensions
1+
# devbox image including tooling for Orange Servicemanager IDP solution
2+
# nushell crossplane kubectl chainsaw

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.13.6/.schema/devbox.schema.json",
3+
"packages": [
4+
"kubectl@1.31.2",
5+
"nushellFull@0.93.0",
6+
"crossplane-cli@1.18.2",
7+
"kyverno-chainsaw@0.2.12"
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: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"crossplane-cli@1.18.2": {
5+
"last_modified": "2025-01-19T08:16:51Z",
6+
"resolved": "github:NixOS/nixpkgs/50165c4f7eb48ce82bd063e1fb8047a0f515f8ce#crossplane-cli",
7+
"source": "devbox-search",
8+
"version": "1.18.2",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/9k4bqlgnf06iqka0fy58xh7blafps9px-crossplane-cli-1.18.2",
15+
"default": true
16+
}
17+
],
18+
"store_path": "/nix/store/9k4bqlgnf06iqka0fy58xh7blafps9px-crossplane-cli-1.18.2"
19+
},
20+
"aarch64-linux": {
21+
"outputs": [
22+
{
23+
"name": "out",
24+
"path": "/nix/store/36035i2wvmplf3akfisrxxzrzbm25anh-crossplane-cli-1.18.2",
25+
"default": true
26+
}
27+
],
28+
"store_path": "/nix/store/36035i2wvmplf3akfisrxxzrzbm25anh-crossplane-cli-1.18.2"
29+
},
30+
"x86_64-darwin": {
31+
"outputs": [
32+
{
33+
"name": "out",
34+
"path": "/nix/store/73aklwnb90nlc82x338qnmyiqvm67g9r-crossplane-cli-1.18.2",
35+
"default": true
36+
}
37+
],
38+
"store_path": "/nix/store/73aklwnb90nlc82x338qnmyiqvm67g9r-crossplane-cli-1.18.2"
39+
},
40+
"x86_64-linux": {
41+
"outputs": [
42+
{
43+
"name": "out",
44+
"path": "/nix/store/prj59cmiq1683hpf26b12mxf1l5lgbh3-crossplane-cli-1.18.2",
45+
"default": true
46+
}
47+
],
48+
"store_path": "/nix/store/prj59cmiq1683hpf26b12mxf1l5lgbh3-crossplane-cli-1.18.2"
49+
}
50+
}
51+
},
52+
"kubectl@1.31.2": {
53+
"last_modified": "2024-12-03T12:40:06Z",
54+
"resolved": "github:NixOS/nixpkgs/566e53c2ad750c84f6d31f9ccb9d00f823165550#kubectl",
55+
"source": "devbox-search",
56+
"version": "1.31.2",
57+
"systems": {
58+
"aarch64-darwin": {
59+
"outputs": [
60+
{
61+
"name": "out",
62+
"path": "/nix/store/4h9x0qgwzy2ck8zbcr0rs9wa7r9d2w1d-kubectl-1.31.2",
63+
"default": true
64+
},
65+
{
66+
"name": "man",
67+
"path": "/nix/store/7zcwgck6jgiq6akld3d58araw9cpxn1z-kubectl-1.31.2-man",
68+
"default": true
69+
},
70+
{
71+
"name": "convert",
72+
"path": "/nix/store/1ws1665h5aja4l1756g1qxqsc15z4skg-kubectl-1.31.2-convert"
73+
}
74+
],
75+
"store_path": "/nix/store/4h9x0qgwzy2ck8zbcr0rs9wa7r9d2w1d-kubectl-1.31.2"
76+
},
77+
"aarch64-linux": {
78+
"outputs": [
79+
{
80+
"name": "out",
81+
"path": "/nix/store/hs22srzb0xw25047q72lzf8yvkyndayp-kubectl-1.31.2",
82+
"default": true
83+
},
84+
{
85+
"name": "man",
86+
"path": "/nix/store/m6pgvbcpw5yyiy5f2106ihkapk7kjv9l-kubectl-1.31.2-man",
87+
"default": true
88+
},
89+
{
90+
"name": "convert",
91+
"path": "/nix/store/mk43xaa0hzc5hsg115nfa89h8p05l70n-kubectl-1.31.2-convert"
92+
}
93+
],
94+
"store_path": "/nix/store/hs22srzb0xw25047q72lzf8yvkyndayp-kubectl-1.31.2"
95+
},
96+
"x86_64-darwin": {
97+
"outputs": [
98+
{
99+
"name": "out",
100+
"path": "/nix/store/gly4lkqmncv1w3f8prsqkxwdbvqgkl9n-kubectl-1.31.2",
101+
"default": true
102+
},
103+
{
104+
"name": "man",
105+
"path": "/nix/store/akj5kj9i82b7qsqknmdr20ga4z48yf62-kubectl-1.31.2-man",
106+
"default": true
107+
},
108+
{
109+
"name": "convert",
110+
"path": "/nix/store/vxzk15k7vikpvy3l6cxndh97p68giaa6-kubectl-1.31.2-convert"
111+
}
112+
],
113+
"store_path": "/nix/store/gly4lkqmncv1w3f8prsqkxwdbvqgkl9n-kubectl-1.31.2"
114+
},
115+
"x86_64-linux": {
116+
"outputs": [
117+
{
118+
"name": "out",
119+
"path": "/nix/store/1j9p9ln3z15hr13vnk1xgn3l7jhginph-kubectl-1.31.2",
120+
"default": true
121+
},
122+
{
123+
"name": "man",
124+
"path": "/nix/store/578hzmyh3y8lzrc8z9c6cpq2br34cvbm-kubectl-1.31.2-man",
125+
"default": true
126+
},
127+
{
128+
"name": "convert",
129+
"path": "/nix/store/3ydlgf7gg4b92bkbf6ipqrr2khkag66w-kubectl-1.31.2-convert"
130+
}
131+
],
132+
"store_path": "/nix/store/1j9p9ln3z15hr13vnk1xgn3l7jhginph-kubectl-1.31.2"
133+
}
134+
}
135+
},
136+
"kyverno-chainsaw@0.2.12": {
137+
"last_modified": "2025-01-19T08:16:51Z",
138+
"resolved": "github:NixOS/nixpkgs/50165c4f7eb48ce82bd063e1fb8047a0f515f8ce#kyverno-chainsaw",
139+
"source": "devbox-search",
140+
"version": "0.2.12",
141+
"systems": {
142+
"aarch64-darwin": {
143+
"outputs": [
144+
{
145+
"name": "out",
146+
"path": "/nix/store/v1vh5z91ypsyyb0abh5rqxd5hidhyj0f-kyverno-chainsaw-0.2.12",
147+
"default": true
148+
}
149+
],
150+
"store_path": "/nix/store/v1vh5z91ypsyyb0abh5rqxd5hidhyj0f-kyverno-chainsaw-0.2.12"
151+
},
152+
"aarch64-linux": {
153+
"outputs": [
154+
{
155+
"name": "out",
156+
"path": "/nix/store/8jmh6faqwbx5g2wyj8czvl5n14gfpxx9-kyverno-chainsaw-0.2.12",
157+
"default": true
158+
}
159+
],
160+
"store_path": "/nix/store/8jmh6faqwbx5g2wyj8czvl5n14gfpxx9-kyverno-chainsaw-0.2.12"
161+
},
162+
"x86_64-darwin": {
163+
"outputs": [
164+
{
165+
"name": "out",
166+
"path": "/nix/store/mfi7c8ky8kwy1pj37hpamkwr2m6px461-kyverno-chainsaw-0.2.12",
167+
"default": true
168+
}
169+
],
170+
"store_path": "/nix/store/mfi7c8ky8kwy1pj37hpamkwr2m6px461-kyverno-chainsaw-0.2.12"
171+
},
172+
"x86_64-linux": {
173+
"outputs": [
174+
{
175+
"name": "out",
176+
"path": "/nix/store/q9znv398daff24b5hr7x5qgx9iyf6ip8-kyverno-chainsaw-0.2.12",
177+
"default": true
178+
}
179+
],
180+
"store_path": "/nix/store/q9znv398daff24b5hr7x5qgx9iyf6ip8-kyverno-chainsaw-0.2.12"
181+
}
182+
}
183+
},
184+
"nushellFull@0.93.0": {
185+
"last_modified": "2024-05-22T06:18:38Z",
186+
"resolved": "github:NixOS/nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e#nushellFull",
187+
"source": "devbox-search",
188+
"version": "0.93.0",
189+
"systems": {
190+
"aarch64-darwin": {
191+
"outputs": [
192+
{
193+
"name": "out",
194+
"path": "/nix/store/mgy7ym5w5qbmzrnvf4pq71ifas3ydh1l-nushell-0.93.0",
195+
"default": true
196+
}
197+
],
198+
"store_path": "/nix/store/mgy7ym5w5qbmzrnvf4pq71ifas3ydh1l-nushell-0.93.0"
199+
},
200+
"aarch64-linux": {
201+
"outputs": [
202+
{
203+
"name": "out",
204+
"path": "/nix/store/4nx394xfwf6547j0cqmd1wj4ghr5z8j8-nushell-0.93.0",
205+
"default": true
206+
}
207+
],
208+
"store_path": "/nix/store/4nx394xfwf6547j0cqmd1wj4ghr5z8j8-nushell-0.93.0"
209+
},
210+
"x86_64-darwin": {
211+
"outputs": [
212+
{
213+
"name": "out",
214+
"path": "/nix/store/m8fr9vx70q44fmxl5rdlb333rwbhi21w-nushell-0.93.0",
215+
"default": true
216+
}
217+
],
218+
"store_path": "/nix/store/m8fr9vx70q44fmxl5rdlb333rwbhi21w-nushell-0.93.0"
219+
},
220+
"x86_64-linux": {
221+
"outputs": [
222+
{
223+
"name": "out",
224+
"path": "/nix/store/k7ckgqnyjqy7vg78d8lcpxfnx9mxpbmm-nushell-0.93.0",
225+
"default": true
226+
}
227+
],
228+
"store_path": "/nix/store/k7ckgqnyjqy7vg78d8lcpxfnx9mxpbmm-nushell-0.93.0"
229+
}
230+
}
231+
}
232+
}
233+
}

tmp/xk6bundler.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)