Keep dockerized sogeBot up-to-date

if you wan’t keep your bots always on latest master / latest release version, then you can use package named ouroboros.

It comes as dockerized package, or as python binaries.

Pre-requirement:

You should be logged to GitHub package registry. If you still not just follow those steps:

  1. Go to GitHub settings, and generate new access token with read:packages scope.

  2. write command for login

    docker login registry.github.com

    It will ask your Username and Password. As password thats means access_token generated above.

How to use dockerized version:

  • usage:
    docker run -d --name ouroboros \
    -v $HOME/.docker/config.json:/root/.docker/config.json \
    -v /var/run/docker.sock:/var/run/docker.sock \
    pyouroboros/ouroboros
    
  • custom interval:
    By default polling interval is 300 seconds, what equals to 5 minutes. You can change that value if you want.
    docker run -d --name ouroboros \
    -v $HOME/.docker/config.json:/root/.docker/config.json \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e INTERVAL=300 \
    pyouroboros/ouroboros
    

It’s done!

How to use pip version:

Unlike dockerized version of ouroboros, we do not need to map our docker config to ouroboros.

  • First steps:
    We need to install ouroboros:
    pip install ouroboros-cli
    
  • usage:
    By default polling interval is 300 seconds, what equals to 5 minutes. You can change that value if you want.
    ouroboros --interval 300 --log-level debug
    

And It’s done!

More command line arguments can be found at ouroboros wiki