This commit is contained in:
parent
4f5cba5002
commit
133f94da46
3 changed files with 73 additions and 2 deletions
|
@ -19,7 +19,7 @@ steps:
|
|||
image: plugins/kaniko
|
||||
settings:
|
||||
build_args:
|
||||
- VERSION=2.2.1
|
||||
- VERSION=2.8.1
|
||||
repo: r.ocj.io/network/healthchecks
|
||||
registry: r.ocj.io
|
||||
username:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.10
|
||||
FROM python:3.11
|
||||
|
||||
ARG VERSION
|
||||
|
||||
|
|
71
flake.nix
Normal file
71
flake.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
description = "Healthchecks";
|
||||
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "nixpkgs/nixos-22.11";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(
|
||||
self: super: {
|
||||
# sonarr = super.sonarr.overrideAttrs (
|
||||
# old:
|
||||
# let
|
||||
# version = "3.0.10.1567";
|
||||
# sha256 = "sha256-6zdp/Bg+9pcrElW5neB+BC16Vn1VhTjhMRRIxGrKhxc=";
|
||||
# in
|
||||
# {
|
||||
# inherit version;
|
||||
# src = pkgs.fetchurl {
|
||||
# url = "https://download.sonarr.tv/v3/main/${version}/Sonarr.main.${version}.linux.tar.gz";
|
||||
# sha256 = sha256;
|
||||
# };
|
||||
# }
|
||||
# );
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
packages.${system}.smtpd = pkgs.dockerTools.buildLayeredImage
|
||||
{
|
||||
name = "healthchecks-smtpd";
|
||||
tag = "latest";
|
||||
maxLayers = 2;
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
pathsToLink = [ "/" ];
|
||||
paths = [
|
||||
pkgs.healthchecks
|
||||
];
|
||||
};
|
||||
config = {
|
||||
Cmd = [
|
||||
"${pkgs.sonarr}/bin/NzbDrone"
|
||||
"-nobrowser"
|
||||
"-data=/config"
|
||||
];
|
||||
User = "5000:5000";
|
||||
ExposedPorts = {
|
||||
"8989/tcp" = { };
|
||||
};
|
||||
Volumes = {
|
||||
"/config" = { };
|
||||
};
|
||||
Env = [
|
||||
"LANG=en_US.UTF-8"
|
||||
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue