chore: add configuration recipes

This commit is contained in:
2023-12-18 16:38:29 +02:00
parent 93793b6424
commit 28589cb122
50 changed files with 1214 additions and 42 deletions

6
recipes/pull/README.md Normal file
View File

@ -0,0 +1,6 @@
# Pull
1. Setup repository named `ahriman-demo` with architecture `x86_64`.
2. Pull repository with custom packages.
3. Run update process.
4. Repository is available at `http://localhost:8080/repo`.

46
recipes/pull/compose.yml Normal file
View File

@ -0,0 +1,46 @@
services:
backend:
image: arcan1s/ahriman:edge
privileged: true
environment:
AHRIMAN_DEBUG: yes
AHRIMAN_OUTPUT: console
AHRIMAN_REPOSITORY: ahriman-demo
configs:
- source: service
target: /etc/ahriman.ini.d/99-settings.ini
volumes:
- type: volume
source: repository
target: /var/lib/ahriman
volume:
nocopy: true
frontend:
image: nginx
ports:
- 8080:80
configs:
- source: nginx
target: /etc/nginx/conf.d/default.conf
volumes:
- type: volume
source: repository
target: /srv
read_only: true
volume:
nocopy: true
configs:
nginx:
file: nginx.conf
service:
file: service.ini
volumes:
repository:

9
recipes/pull/nginx.conf Normal file
View File

@ -0,0 +1,9 @@
server {
listen 80;
location /repo {
rewrite ^/repo/(.*) /$1 break;
autoindex on;
root /srv/ahriman/repository;
}
}

5
recipes/pull/service.ini Normal file
View File

@ -0,0 +1,5 @@
[remote-pull]
target = gitremote
[gitremote]
pull_url = https://git.arcanis.me/arcanis/ahriman-local-packages.git