Browse Source

Add eggdrop test

master
Nico Schottelius 1 year ago
parent
commit
d39e16d206
  1. 43
      eggdrop/README.md
  2. 17
      eggdrop/eggdrop-pod.yaml

43
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

17
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
Loading…
Cancel
Save