devcontainers: use custom Docker builder

This commit is contained in:
Gabriel Arazas 2025-03-15 19:44:32 +08:00
parent 855e552f99
commit abe84f0ec7
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 9 additions and 52 deletions

View File

@ -1,20 +1,6 @@
{ dockerTools, foodogsquaredLib, nodejs, bun, pnpm }: { dockerTools, foodogsquaredLib, nodejs, bun, pnpm }:
dockerTools.buildImage { foodogsquaredLib.buildDockerImage {
name = "fds-js-backend"; name = "js-backend";
contents = [ nodejs bun pnpm ];
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = "fds-js-backend-root";
paths = [ nodejs bun pnpm ];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
} }

View File

@ -1,21 +1,6 @@
{ dockerTools, ruby, bundix, mruby, rails-new, foodogsquaredLib }: { dockerTools, ruby, bundix, mruby, rails-new, foodogsquaredLib }:
let name = s: "fds-ruby-on-rails-${ruby.version}${s}"; foodogsquaredLib.buildDockerImage {
in dockerTools.buildImage { name = "ruby-on-rails";
name = name ""; contents = [ ruby bundix mruby rails-new ];
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = name "-root";
paths = [ ruby bundix mruby rails-new ];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
} }

View File

@ -1,21 +1,7 @@
{ dockerTools, foodogsquaredLib, rustc, cargo, rust-bindgen, rust-analyzer { dockerTools, foodogsquaredLib, rustc, cargo, rust-bindgen, rust-analyzer
, nodejs }: , nodejs }:
dockerTools.buildImage { foodogsquaredLib.buildDockerImage {
name = "fds-rust-backend"; name = "rust-backend";
contents = [ cargo rust-bindgen rust-analyzer rustc nodejs ];
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = "fds-rust-backend-root";
paths = [ cargo rust-bindgen rust-analyzer rustc nodejs ];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
} }