Add Dockerfile and docker-compose
This commit is contained in:
parent
0c1aa0a327
commit
4a23489c1c
|
@ -0,0 +1,8 @@
|
|||
FROM archlinux:base-devel
|
||||
RUN pacman -Syuu --noconfirm
|
||||
WORKDIR /opt/aur_builder
|
||||
RUN useradd -m -g users -G wheel -s /bin/bash aur && echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
ADD https://git.orudo.ru/OrudoCA/aur_builder_bot/releases/download/0.1.0/aur_builder_bot /opt/aur_builder/aur_builder_bot
|
||||
RUN chmod +x aur_builder_bot && ln -sf /opt/aur_builder/aur_builder_bot /usr/bin/aur_builder_bot && chown aur -R /opt/aur_builder
|
||||
USER aur
|
||||
ENTRYPOINT ["aur_builder_bot"]
|
25
README.md
25
README.md
|
@ -34,8 +34,31 @@ ln -s /path/to/bot/repo /path/to/repo
|
|||
|
||||
### Docker
|
||||
|
||||
В разработке
|
||||
**docker-cli**
|
||||
```bash
|
||||
docker run \
|
||||
--name AUR_Builder_Bot \
|
||||
--restart=unless-stopped \
|
||||
-v /path/to/repo:/opt/aur_build/repo \
|
||||
-e TELOXIDE_TOKEN="<Your_token_here>"
|
||||
-d orudoca/aur_builder_bot:latest
|
||||
```
|
||||
|
||||
**docker-compose**
|
||||
```yml
|
||||
services:
|
||||
aur_builder_bot:
|
||||
image: orudoca/aur_builder_bot:latest
|
||||
container_name: AUR_Builder_Bot
|
||||
volumes:
|
||||
- /path/to/repo/:/opt/aur_builder/repo
|
||||
restart: 'unless-stopped'
|
||||
environment:
|
||||
TELOXIDE_TOKEN: "<Your_token_here>"
|
||||
```
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Использоание
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
services:
|
||||
aur_builder_bot:
|
||||
image: orudoca/aur_builder_bot:latest
|
||||
container_name: AUR_Builder_Bot
|
||||
volumes:
|
||||
- /path/to/repo/:/opt/aur_builder/repo
|
||||
restart: 'unless-stopped'
|
||||
environment:
|
||||
TELOXIDE_TOKEN: "<Your_token_here>"
|
Loading…
Reference in New Issue