Skip to content

Commit

Permalink
recompute devbox shellenv
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Feb 5, 2024
1 parent 23bad47 commit 578f8ce
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 26 deletions.
6 changes: 3 additions & 3 deletions bun/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox version
RUN devbox global add yarn [email protected] [email protected]
RUN eval "$(devbox global shellenv)" && bun --version
RUN eval "$(devbox global shellenv)" && node --version
CMD eval "$(devbox global shellenv)" && bun
RUN eval "$(devbox global shellenv --recompute)" && bun --version
RUN eval "$(devbox global shellenv --recompute)" && node --version
CMD eval "$(devbox global shellenv --recompute)" && bun
6 changes: 3 additions & 3 deletions bun/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox version")
.run("devbox global add yarn [email protected] [email protected]")
.run('eval "$(devbox global shellenv)" && bun --version')
.run('eval "$(devbox global shellenv)" && node --version')
.cmd('eval "$(devbox global shellenv)" && bun');
.run('eval "$(devbox global shellenv --recompute)" && bun --version')
.run('eval "$(devbox global shellenv --recompute)" && node --version')
.cmd('eval "$(devbox global shellenv --recompute)" && bun');

const dockerfile = image.toString();

Expand Down
4 changes: 2 additions & 2 deletions clojure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox version
RUN devbox global add leiningen clojure
RUN eval "$(devbox global shellenv)" && lein --version
CMD eval "$(devbox global shellenv)" && lein
RUN eval "$(devbox global shellenv --recompute)" && lein --version
CMD eval "$(devbox global shellenv --recompute)" && lein
4 changes: 2 additions & 2 deletions clojure/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox version")
.run("devbox global add leiningen clojure")
.run('eval "$(devbox global shellenv)" && lein --version')
.cmd('eval "$(devbox global shellenv)" && lein');
.run('eval "$(devbox global shellenv --recompute)" && lein --version')
.cmd('eval "$(devbox global shellenv --recompute)" && lein');

const dockerfile = image.toString();

Expand Down
4 changes: 2 additions & 2 deletions elixir/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox version
RUN devbox global add elixir
RUN eval "$(devbox global shellenv)" && elixir --version
CMD eval "$(devbox global shellenv)" && elixir
RUN eval "$(devbox global shellenv --recompute)" && elixir --version
CMD eval "$(devbox global shellenv --recompute)" && elixir
4 changes: 2 additions & 2 deletions elixir/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox version")
.run("devbox global add elixir")
.run('eval "$(devbox global shellenv)" && elixir --version')
.cmd('eval "$(devbox global shellenv)" && elixir');
.run('eval "$(devbox global shellenv --recompute)" && elixir --version')
.cmd('eval "$(devbox global shellenv --recompute)" && elixir');

const dockerfile = image.toString();

Expand Down
4 changes: 2 additions & 2 deletions gradle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox version
RUN devbox global add gradle
RUN eval "$(devbox global shellenv)" && gradle --version
CMD eval "$(devbox global shellenv)" && gradle
RUN eval "$(devbox global shellenv --recompute)" && gradle --version
CMD eval "$(devbox global shellenv --recompute)" && gradle
4 changes: 2 additions & 2 deletions gradle/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox version")
.run("devbox global add gradle")
.run('eval "$(devbox global shellenv)" && gradle --version')
.cmd('eval "$(devbox global shellenv)" && gradle');
.run('eval "$(devbox global shellenv --recompute)" && gradle --version')
.cmd('eval "$(devbox global shellenv --recompute)" && gradle');

const dockerfile = image.toString();

Expand Down
4 changes: 2 additions & 2 deletions sonar-scanner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox global add sonar-scanner-cli nodejs
RUN eval "$(devbox global shellenv)" && sonar-scanner --version
CMD eval "$(devbox global shellenv)" && sonar-scanner
RUN eval "$(devbox global shellenv --recompute)" && sonar-scanner --version
CMD eval "$(devbox global shellenv --recompute)" && sonar-scanner
6 changes: 4 additions & 2 deletions sonar-scanner/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { Dockerfile } from "https://deno.land/x/[email protected]/mod.ts";
const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox global add sonar-scanner-cli nodejs")
.run('eval "$(devbox global shellenv)" && sonar-scanner --version')
.cmd('eval "$(devbox global shellenv)" && sonar-scanner');
.run(
'eval "$(devbox global shellenv --recompute)" && sonar-scanner --version'
)
.cmd('eval "$(devbox global shellenv --recompute)" && sonar-scanner');

const dockerfile = image.toString();

Expand Down
4 changes: 2 additions & 2 deletions zig/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

FROM ghcr.io/fluentci-io/devbox:latest
RUN devbox global add [email protected]
RUN eval "$(devbox global shellenv)" && zig version
CMD eval "$(devbox global shellenv)" && zig
RUN eval "$(devbox global shellenv --recompute)" && zig version
CMD eval "$(devbox global shellenv --recompute)" && zig
4 changes: 2 additions & 2 deletions zig/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Dockerfile } from "https://deno.land/x/[email protected]/mod.ts";
const image = new Dockerfile()
.from("ghcr.io/fluentci-io/devbox:latest")
.run("devbox global add [email protected]")
.run('eval "$(devbox global shellenv)" && zig version')
.cmd('eval "$(devbox global shellenv)" && zig');
.run('eval "$(devbox global shellenv --recompute)" && zig version')
.cmd('eval "$(devbox global shellenv --recompute)" && zig');

const dockerfile = image.toString();

Expand Down

0 comments on commit 578f8ce

Please sign in to comment.