12/23/2023 0 Comments Ejabberd ubuntu 16.01![]() # If you want to join cluster once up as pass the master node as ENV then pass first param like join_cluster #Įcho -e "***************Joining_Cluster start***********" Until nc -vzw 2 localhost 5222 do sleep 2 echo -e "Ejabberd is booting." done Ĭommand: /opt/ejabberd/start.sh join_clusterĬommand=/home/ejabberd/bin/ejabberdctl foregroundĪ /opt/ejabberd/start.sh bash script that will list_cluster once ejabberd is up and also capable to join_cluster if an argument is passed while calling the script. Note here join cluster argument is used to join cluster if you want to join the cluster. Now create nf to start ejabberd using supervisorsd. Supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface From ejabberd/ecs:latestĬOPY nf /etc/nfĬOPY pm2.conf /etc/supervisord.d/nfĮNV Use ejabberd official image as a base image and ENV is for the master node if you are interested in a cluster. ![]() ![]() The demo is here can be modified for Ubuntu too but this is tested against the alpine ejabberd official image. I will suggest using an official alpine image of 30 MB only of ejabberd instead of Ubuntu. So add your script on boot up while a bit modification. In option B you need to modify ejabberd official image entry point as it does not allow you to run multiple scripts on bootup. #!/bin/bashĭocker run -rm -name ejabberd -d -p 5222:5222 ejabberd/ecsĭocker exec -it ejabberd ash -c "/home/ejabberd/bin/ejabberdctl list_cluster" Create a simple bash script that runs container and list_cluster with out modifying entry point of ejabberd docker image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |