Example of wrapping the dockerhub znc container image to run in OpenShift.
3.9K
Many avid IRC users use an IRC bouncer, a proxy service that remains persistently connected to your preferred IRC networks and channels. Instead of connecting directly to an IRC network such as irc.example.com, you connect to a machine like bouncer.mysite.com which runs the bouncer software. The bouncer, in turn, is connected to the IRC network. When you log into your bouncer, it shows messages in your channels you may have missed while offline, as well as private messages from other users. Read more here.
ZNC is an IRC bouncer. And this git repo is a simple example of wrapping the dockerhub znc container image to run our own ZNC bouncer in OpenShift.
Sounds cool right? It is. And here's how you can use it.
Create the app from the Docker Hub image and expose it to webtraffic
oc new-app dudash/openshift-znc --name=znc-demooc expose service znc-demoNow you can access it via the route that was automatically exposed on port 6697.
Fork this repo by clicking the button on the top right of this page.
Create the app from a Docker image and expose it to webtraffic
oc new-app https://github.com/yourfork/openshift-znc.git --name=znc-demooc expose service znc-demo(Note: if you are using OpenShift Online you will have to build your own docker image and new-app from that image because Dockerfile builds are currently not allowed when using OpenShift Online).
Here's a quick way to set that up.
oc create configmap znc-config --from-file=./znc.confoc rollout pause dc/znc-demooc volume dc/znc-demo --add --configmap-name=znc-config --mount-path='/znc-config/configs/' --default-mode='0777'oc env dc/znc-demo OVERRIDE_DATADIR='/znc-config'oc rollout resume dc/znc-demoYou could also consume the config map data in a PV so that changes are preserved. I'll leave this as an exercise for you to figure out. Start by reading the details here:
Content type
Image
Digest
Size
104.3 MB
Last updated
over 8 years ago
docker pull dudash/openshift-znc