Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhzdhd/obsidianlite

A discord bot made with poise.rs
https://github.com/dhzdhd/obsidianlite

discord-bot poise-rs rust serenity-rs

Last synced: about 6 hours ago
JSON representation

A discord bot made with poise.rs

Awesome Lists containing this project

README

        

# ObsidianLite

## Setup

- Server
- AWS
- Create an AWS IAM user and configure permissions for the same
- Download AWS CLI and run `aws configure`
- Download and install pulumi
- Create a python virtual env in `iac/pulumi` as per `iac/pulumi/requirements.txt`
- Download and install ansible
- Create a `hosts.yml` in `iac/ansible` and fill it as per `hosts.yml.example`
- Docker
- Download and install Docker desktop/engine

## Running the bot

- Server
- From the `ObsidianLite` directory, run the commands
- `pulumi up --cwd ./iac/vm/pulumi`
- `scp -i ~/.ssh/aws.pem .env ubuntu@:/home/ubuntu/.env`
- `ansible-playbook -i ./iac/vm/ansible/hosts.yml --private-key ~/.ssh/aws.pem iac/vm/ansible/playbook.yml`
- Docker
- Building image locally
- Run `docker compose up -d`
- Use docker registry
- Run `docker compose -f docker-compose-prod.yaml up -d`