-
Notifications
You must be signed in to change notification settings - Fork 9
/
default.nix
48 lines (48 loc) · 955 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
pkgs ? import <nixpkgs> { },
}:
rec {
moq-rs = pkgs.callPackage ./package.nix { };
default = moq-rs;
publish = pkgs.dockerTools.buildLayeredImage {
name = "moq-pub";
tag = "latest";
contents = pkgs.buildEnv {
name = "image-root";
paths = with pkgs; [
bashInteractive
coreutils
ffmpeg
wget
moq-rs
];
pathsToLink = [ "/bin" ];
};
config = {
Entrypoint = [ "bash" ];
Cmd = [ deploy/publish ];
};
};
relay = pkgs.dockerTools.buildLayeredImage {
name = "moq-relay";
tag = "latest";
contents = pkgs.buildEnv {
name = "image-root";
paths = with pkgs; [
bashInteractive
coreutils
curl
dockerTools.caCertificates
moq-rs
];
pathsToLink = [
"/bin"
"/etc"
];
};
config = {
Entrypoint = [ "bash" ];
Cmd = [ "moq-relay" ];
};
};
}