fix stale repo issue affecting scheduled jobs
Some checks failed
Build and push nixos-based docker container / build (push) Has been cancelled
Some checks failed
Build and push nixos-based docker container / build (push) Has been cancelled
This commit is contained in:
parent
2d0228de00
commit
aa3999b352
20
docker.nix
20
docker.nix
|
@ -1,6 +1,20 @@
|
||||||
{ config, pkgs, ...}:
|
{ config, pkgs, ...}:
|
||||||
|
|
||||||
pkgs.dockerTools.streamLayeredImage {
|
let
|
||||||
name = "node-red";
|
name = "node-red";
|
||||||
config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
|
entrypoint = pkgs.writeShellApplication {
|
||||||
|
inherit name;
|
||||||
|
|
||||||
|
runtimeInputs = with pkgs; with nodePackages; [
|
||||||
|
node-red
|
||||||
|
ungoogled-chromium
|
||||||
|
];
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
node-red
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in pkgs.dockerTools.streamLayeredImage {
|
||||||
|
inherit name;
|
||||||
|
config.Cmd = [ "${entrypoint}/bin/entrypoint" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,6 @@
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
streamImage = pkgs.callPackage (import ./docker.nix) {};
|
streamImage = pkgs.callPackage (import ./docker.nix) {};
|
||||||
#pkgs.dockerTools.streamLayeredImage {
|
|
||||||
# name = "node-red";
|
|
||||||
# config.Cmd = [ "${pkgs.nodePackages.node-red}/bin/node-red" ];
|
|
||||||
#};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user