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.buildImage {
name = "fds-js-backend";
copyToRoot = foodogsquaredLib.buildFDSEnv {
name = "fds-js-backend-root";
paths = [ nodejs bun pnpm ];
};
runAsRoot = ''
mkdir -p /data
'';
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/data";
Volumes."/data" = { };
};
foodogsquaredLib.buildDockerImage {
name = "js-backend";
contents = [ nodejs bun pnpm ];
}

View File

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

View File

@ -1,21 +1,7 @@
{ dockerTools, foodogsquaredLib, rustc, cargo, rust-bindgen, rust-analyzer
, nodejs }:
dockerTools.buildImage {
name = "fds-rust-backend";
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" = { };
};
foodogsquaredLib.buildDockerImage {
name = "rust-backend";
contents = [ cargo rust-bindgen rust-analyzer rustc nodejs ];
}