Nuke docker.io

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-11 21:04:37 +00:00
parent bdaac67bf2
commit 10e0980f8f
23 changed files with 521 additions and 68 deletions

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
log = import ./log { inherit pkgs; };
merge = import ./merge { inherit pkgs; };
}

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
docker = import ./docker { inherit pkgs; };
}

View File

@@ -1,4 +0,0 @@
{ pkgs, ... }:
{
postgres = import ./postgres { inherit pkgs; };
}

View File

@@ -1,6 +0,0 @@
{ pkgs, ... }:
pkgs.writeTextFile {
name = "log-wrapper-docker-postgres";
text = builtins.readFile ./wrapper.sh;
executable = true;
}

View File

@@ -1,17 +0,0 @@
#!/bin/sh
set -o errexit
set -o nounset
LOG_PIPE="$(mktemp -u)"
mkfifo "$LOG_PIPE"
while IFS= read -r line; do
if echo "$line" | grep -qE "ERROR|FATAL|PANIC"; then
echo "$line" >&2
else
echo "$line" >&1
fi
done < "$LOG_PIPE" &
exec /usr/local/bin/docker-entrypoint.sh "$@" >"$LOG_PIPE" 2>&1