Coder Social home page Coder Social logo

pyinfra-xdcstore's Introduction

pyinfra module to deploy xdcstore and xdcget

This repository was moved to https://codeberg.org/webxdc/pyinfra-xstore

This module deploys xdcstore and xdcget.

Prerequisites

To deploy xdcstore and xdcget, you need:

  • root SSH access to a linux server (tested with Debian 12)
  • an email account for the bot
  • a github.com and/or codeberg.org account so the bot can download .xdc files from there; read more about how to create the neccessary API tokens in the documentation.

Use it in python code

This module can be used in a pyinfra deploy.py file like this:

from pyinfra_xdcstore import deploy_xdcstore

deploy_xdcstore(
    unix_user="xdcstore",              # the existing UNIX user of the bot
    bot_email="[email protected]",  # the email address for the bot
    bot_password="p4ssw0rd",           # the password for the bot's email account
    codeberg_user="missytake",         # the username of a codeberg account
    codeberg_token="0987wer09832ru9",  # an API token for the codeberg account
    github_user="missytake",           # the username of a github account
    github_user="983q79mrrrrr9ewum",   # an API token for the github account
)

Deploy with few CLI commands

You can also use this module to deploy xdcstore and xdcget with these few CLI commands:

# install pyinfra, and this module
git clone https://github.com/deltachat/pyinfra-xdcstore
pip install --user .

# configure the bot's credentials
export [email protected]
export XDCSTORE_PASSWORD=p4ssw0rd

# run the deployment
pyinfra --ssh-user root -- <your_server> deploy.py

Additional environment variables you can (and should) use:

XDCGET_UNIX_USER        # as which user on your server you want the bot to run; default: xdcstore
XDCGET_CODEBERG_USER    # the username of a codeberg account
XDCGET_CODEBERG_TOKEN   # an API token for the codeberg account
XDCGET_GITHUB_USER      # the username of a github account
XDCGET_GITHUB_TOKEN     # an API token for the github account

pyinfra-xdcstore's People

Contributors

missytake avatar link2xt avatar

Stargazers

 avatar

Watchers

holger krekel  avatar rae avatar Friedel Ziegelmayer avatar  avatar bjoern avatar Angelo Fuchs avatar xeniax avatar  avatar  avatar Simon Laux avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.