Compare commits
3 commits
27e8dc5830
...
b573b4cb85
Author | SHA1 | Date | |
---|---|---|---|
b573b4cb85 | |||
c492de29d9 | |||
fff7b70527 |
7 changed files with 30 additions and 6 deletions
0
.ci/lint.sh
Normal file → Executable file
0
.ci/lint.sh
Normal file → Executable file
1
.ci/requirements.txt
Normal file
1
.ci/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pyyaml==6.0.2
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
.vscode
|
.vscode
|
||||||
.env.priv
|
.env.priv
|
||||||
|
.venv
|
|
@ -1,14 +1,25 @@
|
||||||
steps:
|
steps:
|
||||||
|
check_ports_labels:
|
||||||
|
image: python:3.12-slim
|
||||||
|
commands:
|
||||||
|
- pip3 install -r .ci/requirements.txt
|
||||||
|
- python3 .ci/port_attribution_watcher.py
|
||||||
|
- python3 .ci/traefik_labels_watcher.py
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
repo: gnouseu/docker-services
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
lint:
|
lint:
|
||||||
image: debian:stable-slim
|
image: debian:stable-slim
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y curl
|
- apt-get install -y curl
|
||||||
- curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
- curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
|
||||||
- chmod +x //usr/local/bin/docker-compose
|
- chmod +x /usr/local/bin/docker-compose
|
||||||
- sh .ci/lint.sh
|
- sh .ci/lint.sh
|
||||||
when:
|
when:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
repo: gnouseu/docker-services
|
repo: gnouseu/docker-services
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
13
README.md
13
README.md
|
@ -1,3 +1,14 @@
|
||||||
# Services Gnous
|
# Services Gnous
|
||||||
|
|
||||||
L'ensemble des docker compose pour les services du projet Gnous.
|
L'ensemble des docker compose pour les services du projet Gnous.
|
||||||
|
|
||||||
|
## Lint
|
||||||
|
|
||||||
|
```
|
||||||
|
python3 -m venv .venv/
|
||||||
|
source .venv/bin/activate
|
||||||
|
pip install -r .ci/requirements.txt
|
||||||
|
python3 .ci/port_attribution_watcher.py
|
||||||
|
python3 .ci/traefik_label_watcher.py
|
||||||
|
./.ci/lint.sh
|
||||||
|
```
|
|
@ -7,7 +7,7 @@ services:
|
||||||
image: git.gnous.eu/gnouseu/wiki:v3
|
image: git.gnous.eu/gnouseu/wiki:v3
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3005:80"
|
- "3010:80"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.wiki.entryPoints=websecure"
|
- "traefik.http.routers.wiki.entryPoints=websecure"
|
||||||
|
|
|
@ -53,7 +53,7 @@ services:
|
||||||
- "traefik.http.routers.woodpecker-grpc-secure.entrypoints=websecure"
|
- "traefik.http.routers.woodpecker-grpc-secure.entrypoints=websecure"
|
||||||
- "traefik.http.routers.woodpecker-grpc-secure.service=woodpecker-grpc"
|
- "traefik.http.routers.woodpecker-grpc-secure.service=woodpecker-grpc"
|
||||||
- "traefik.http.routers.woodpecker-grpc.middlewares=woodpecker-grpc-redirect@docker"
|
- "traefik.http.routers.woodpecker-grpc.middlewares=woodpecker-grpc-redirect@docker"
|
||||||
- "traefik.http.routers.gnousdoteu.middlewares=proxyHeader@file,proxyError@file"
|
- "traefik.http.routers.woodpecker-grpc.middlewares=proxyHeader@file,proxyError@file"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue