From d39e16d206b89574c1fbff8e205cf77cfd66ac1c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 8 Jun 2021 16:29:48 +0200 Subject: [PATCH] Add eggdrop test --- eggdrop/README.md | 43 ++++++++++++++++++++++++++++++++++++++++ eggdrop/eggdrop-pod.yaml | 17 ++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 eggdrop/README.md create mode 100644 eggdrop/eggdrop-pod.yaml diff --git a/eggdrop/README.md b/eggdrop/README.md new file mode 100644 index 0000000..2cdae4e --- /dev/null +++ b/eggdrop/README.md @@ -0,0 +1,43 @@ +## eggdrop + +This is a application test for running on our kubernetes cluster + +## Init + +``` +docker run -ti -e NICK=FooBot -e SERVER=irc.freenode.net -v +/path/for/host/data:/home/eggdrop/eggdrop/data eggdrop +``` + +## eggdrop help + +``` +/home/eggdrop/eggdrop # ./eggdrop -h + +Eggdrop v1.8.4 (C) 1997 Robey Pointer (C) 2010-2018 Eggheads + +Usage: ./eggdrop [options] [config-file] + +Options: +-n Don't background; send all log entries to console. +-nc Don't background; display channel stats every 10 seconds. +-nt Don't background; use terminal to simulate DCC chat. +-m Create userfile. +-h Show this help and exit. +-v Show version info and exit. +``` + +``` +/home/eggdrop/eggdrop # su-exec eggdrop /home/eggdrop/eggdrop/eggdrop + +Eggdrop v1.8.4 (C) 1997 Robey Pointer (C) 2010-2018 Eggheads +--- Loading eggdrop v1.8.4 (Tue Jun 8 2021) +* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR) +``` + +## Final command + +* Needs /home/eggdrop/eggdrop/eggdrop.conf +* +``` +/sbin/su-exec eggdrop /home/eggdrop/eggdrop/eggdrop diff --git a/eggdrop/eggdrop-pod.yaml b/eggdrop/eggdrop-pod.yaml new file mode 100644 index 0000000..cf20c73 --- /dev/null +++ b/eggdrop/eggdrop-pod.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Pod +metadata: + name: eggdrop-pod + labels: + app: eggdrop +spec: + containers: + - name: eggdrop-container + image: ungleich/ungleich-eggdrop + command: + - /entrypoint.sh + env: + - name: NICK + valueFrom: + fieldRef: + fieldPath: metadata.name