2022-08-06 20:31:18 +00:00
|
|
|
{ config, inputs, pkgs, ... }:
|
|
|
|
{
|
2023-07-10 07:17:02 +00:00
|
|
|
config.virtualisation.oci-containers.containers.fic-checker = {
|
|
|
|
image = "fic-checker:latest";
|
2022-08-06 20:31:18 +00:00
|
|
|
imageFile = pkgs.dockerTools.buildImage {
|
2023-07-10 07:17:02 +00:00
|
|
|
name = "fic-checker";
|
2022-08-06 20:31:18 +00:00
|
|
|
tag = "latest";
|
|
|
|
created = "now";
|
|
|
|
config = {
|
2023-07-10 07:17:02 +00:00
|
|
|
Cmd = [ "${inputs.ficpkgs.packages.x86_64-linux.fic-checker}/bin/checker" ];
|
2022-08-06 20:31:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
autoStart = true;
|
|
|
|
environment = {
|
|
|
|
MYSQL_HOST = "db";
|
|
|
|
};
|
|
|
|
workdir = "/srv";
|
|
|
|
extraOptions = [ "--network=phobos-lan" "--ip=172.18.0.41" ];
|
|
|
|
volumes = [
|
|
|
|
"/etc/hosts:/etc/hosts:ro"
|
2023-07-10 07:17:02 +00:00
|
|
|
"/var/lib/fic/generator:/srv/GENERATOR:ro"
|
|
|
|
"/var/lib/fic/teams:/srv/TEAMS:ro"
|
2022-08-06 20:31:18 +00:00
|
|
|
"/var/lib/fic/settingsdist:/srv/SETTINGSDIST:ro"
|
|
|
|
"/var/lib/fic/submissions:/srv/submissions"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|