This container will use ubi8/ubi-minimal as base image to build and run ZNC bouncer.
ZNC will start automatically with the option --foreground
. It expect to find a valid configuration inside /home/znc/
.
It can be started with:
$ podman run -d \
-p [local_port]:[znc_port] \
-u 1001 \
-v /path/to/folder:/home/znc quay.io/elroncio/ubi8-znc
If you want to create a configuration for the first time, you can run it with:
$ podman run -it \
-p [local_port]:[znc_port] \
-u 1001
-v /path/to/folder:/home/znc quay.io/elroncio/ubi8-znc --makeconf
The container will perform a multi-stage build, cloning and building the soruce code of znc at the tag setted with ARG TAG
.
It will run as user set by ARG UID
and it will be in the directory setted by ARG ZNC_HOME_DIR
.
The default valuse are:
TAG: 1.7.5
UID: 1001
ZNC_HOME_DIR: /home/znc
You can change those values at build time.
To build:
$ buildah bud -f Dockerfile -t your/tag/name
- Better documentation
- Selinux option with Udica