You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add curl or wget to the container images? That will let us use Docker's native healthchecks to ping the service and check for Ok. Which will allow Soketi's health to be monitored by monitoring software.
I noticed that wget is in the Debian Dockerfile but it's not available inside the quay.io Debian images for some reason. Not sure why.
The text was updated successfully, but these errors were encountered:
Came across the same issue for the distroless images and solved it by creating a modified Docker image with a built-in node-based health check for Soketi:
Create a health check script for Node.
// healthcheck.js
#!/usr/bin/env node
consthttp=require('node:http');constoptions={hostname: 'localhost',port: process.env.SOKETI_PORT||6001,path: '/',method: 'GET'};http.request(options,res=>{letbody='';res.on('data',chunk=>{body+=chunk;});res.on('end',()=>{if(body==='OK'){process.stdout.write('We are healthy!');process.exit(0);}else{process.stdout.write('Uh oh, we are not healthy!');process.exit(1);}});}).on('error',()=>{process.stdout.write('Uh oh, we are not healthy!');process.exit(1);}).end();
Create a Dockerfile based off the distroless Soketi image:
Hi
Could you add curl or wget to the container images? That will let us use Docker's native healthchecks to ping the service and check for
Ok
. Which will allow Soketi's health to be monitored by monitoring software.I noticed that wget is in the Debian Dockerfile but it's not available inside the quay.io Debian images for some reason. Not sure why.
The text was updated successfully, but these errors were encountered: