Skip to content

Commit

Permalink
Add docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
necto committed Jan 11, 2025
1 parent 57650d4 commit 035582d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@
of documenting the alias itself
- [X] ~/list~ command to list all the aliases
- [X] ~/remove~ command to remove an alias
- [ ] A docker container and a sample docker-compose file to conveniently deploy
- [X] A docker container and a sample docker-compose file to conveniently deploy
the bot on a NAS container station.
#+begin_src
# in guix on the rust-team branch (986245daca2fb50d58cf0f2b9273f0d670d38af2)
./pre-inst-env guix pack --format=docker --file=../kmail-alias-bot/raw-package.scm --entry-point=bin/kmail-alias-bot
# in kmail-alias-bot
docker load < /gnu/store/vl2krv8pkm4z10nhl9fp3wm1afjdkpdd-rust-kmail-alias-bot-docker-pack.tar.gz
docker login
docker tag rust-kmail-alias-bot azaostro/alias-bot:0.1.1
docker push azaostro/kmail-alias-bot:0.1.1
docker-compose up
#+end_src

** Running
#+begin_src
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.8'

services:
kmail-alias-bot:
image: azaostro/kmail-alias-bot:0.1.1
container_name: kmail-alias-bot
volumes:
- type: bind
source: ./kmail-alias.toml
target: /kmail-alias.toml
read_only: true

0 comments on commit 035582d

Please sign in to comment.