update to 2.8.1
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey C. Ollie 2023-04-15 19:01:10 -05:00
parent 4f5cba5002
commit 133f94da46
Signed by: jeff
GPG key ID: 6F86035A6D97044E
3 changed files with 73 additions and 2 deletions

View file

@ -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:

View file

@ -1,4 +1,4 @@
FROM python:3.10
FROM python:3.11
ARG VERSION

71
flake.nix Normal file
View 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"
];
};
};
};
}