Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add roboclic service #14

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: add roboclic service
  • Loading branch information
Thechi2000 committed Sep 5, 2023
commit ebdf6a1d207e5cb45a8ea50cbedb6f77b0c1e3eb
8 changes: 8 additions & 0 deletions roboclic/.keys.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"token": "awesome bot token",

// Groups allowed to use restricted commands (like /bureau or /poll)
"groups": [1234, 2345, 3456],
"admin": 1234567,
"phone": "+12 34 567 89 10"
Thechi2000 marked this conversation as resolved.
Show resolved Hide resolved
}
5 changes: 5 additions & 0 deletions roboclic/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
roboclic:
image: ghrc.io/clicepfl/roboclic # TODO Check if correct
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary to host the image on ghrc? Can't we keep it at home?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it have to be on the caddy network too ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we keep it at home?

We could, but we would need to self-host a docker registry. Since the code (including the Dockerfile) is public, I don't think it is an issue if it is hosted by Github.

Doesn't it have to be on the caddy network too ?

No, since it only needs to send HTTP requests, it does not receive any.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's ghcr.io ? Remove comment as well

volumes:
- ../.keys:/app/keys