Skip to content

Run weechat forever on a docker container inside a tmux session over ssh

License

Notifications You must be signed in to change notification settings

mrbrandao/dkweechat

Repository files navigation

dkweechat aka Docker Weechat

Weechat is a nice IRC client and this project gives you a nice docker container to use weechat and all your scripts. Yes, it's very cool now you be able to stay connect forever on IRC network, and you can also add you favorite Slack teams too... All you will need is an ssh connection to this container and voilá, you are ready to stay live forever on a tmux stick session on all your favorite channels...

This project was inspired and some part based on https://github.com/kerwindena/docker-weechat

Installation

This is a very simple project, all you need is basically an ssh public key, if dont have one yet, you can make one with the command ssh-keygen. All wee need, is map your public ssh key on this docker container. You can do this in several ways... The easy way is use the setup.sh script...

To take this action even more simple, just run:

 ./setup.sh run

Just run setup and it will guide you trough a simple steps and run this container 🔮 automagically 🔮

Manually

This is very simple to run, you need to specify the full path of your ssh public key and set this path on variable pubkey

You can do like this:

E.g. $ set -a; export pubkey=/home/myuser/.ssh/id_rsa.pub;docker-compose up

Or you can just place you full ssh public key path on docker-compose.yml on volumes group.

  volumes:
    - full_path_to_your_key:/home/weechat/.ssh/authorized_keys:ro

If you want to understant what it's doing manually:

  • export pubkey=path_to_my_key
  • check if the volume weechat exist and if not then create. (This volume is where your settings will be persisted)
  • check if you already have a backup and if it exist restore them on weechat volume
  • docker-compose up -d && docker-compose logs -f

Ps. the weechat volume name is hardcoded, and if you already have one volume with this same name, setup.sh will create a data folder to weechat.
If you don't have a weechat volume and don't want to run setup script, then you will need to manually create weechat docker volume with command: docker volume create --name weechat

FAQ

How can i access the weechat?

  • You access weechat trough ssh connection over port 5000 on your host.
    For example if you are running on your localmachine, them you can access with command: ssh weechat@localhost -p 5000

Can i backup my weechat settings and files? How?

  • Yes you can backup all your settings on a tarball file.
    Just run ./setup.sh bkp and it gon build a main tarball called dkweechat.tar.gz on the root folder of this project.

How can i restore my files?

  • Just place a filed called dkweechat.tar.gz on the root folder of this project and it will be restored with command ./setup.sh restore. This restore will only work for files backuped by the command setup.sh bkp .

How run without auto restore from scratch?

  • Remove file dkweechat.tar.gz from main root folder of this project, and run docker-compose down; docker volume rm weechat, then run setup again.

Requirements

  • docker
  • docker-compose

Author

 (_)              
  _ ___  ___ __ _ 
 | / __|/ __/ _` |
 | \__ \ (_| (_| |
 |_|___/\___\__,_|

By: isca space🤖

About

Run weechat forever on a docker container inside a tmux session over ssh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages