Create a dedicated machine for renovate
This way it can do what it wants with docker. Because apparently it's very picky about how it's setup
This commit is contained in:
parent
78b0161585
commit
1a74e05a7c
6 changed files with 34 additions and 10 deletions
|
@ -21,3 +21,5 @@ pve_hosts:
|
||||||
ip: 192.168.2.203
|
ip: 192.168.2.203
|
||||||
qbittorrent:
|
qbittorrent:
|
||||||
ip: 10.23.1.105
|
ip: 10.23.1.105
|
||||||
|
renovate:
|
||||||
|
ip: 10.23.1.110
|
||||||
|
|
|
@ -14,3 +14,4 @@ qbittorrent
|
||||||
restic
|
restic
|
||||||
pve-gitlab
|
pve-gitlab
|
||||||
pve-gitlab-runner
|
pve-gitlab-runner
|
||||||
|
renovate
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
- pve-gitlab-runner
|
- pve-gitlab-runner
|
||||||
- grimes
|
- grimes
|
||||||
- decker
|
- decker
|
||||||
|
- renovate
|
||||||
roles:
|
roles:
|
||||||
- role: geerlingguy.docker
|
- role: geerlingguy.docker
|
||||||
become: true
|
become: true
|
||||||
|
@ -56,7 +57,6 @@
|
||||||
- pve_nebula_route
|
- pve_nebula_route
|
||||||
- privatebin
|
- privatebin
|
||||||
- vaultwarden
|
- vaultwarden
|
||||||
- renovate
|
|
||||||
|
|
||||||
- hosts: ingress
|
- hosts: ingress
|
||||||
roles:
|
roles:
|
||||||
|
@ -122,3 +122,7 @@
|
||||||
- nebula
|
- nebula
|
||||||
- restic
|
- restic
|
||||||
- uptime_kuma
|
- uptime_kuma
|
||||||
|
|
||||||
|
- hosts: renovate
|
||||||
|
roles:
|
||||||
|
- renovate
|
||||||
|
|
|
@ -7,5 +7,9 @@ module.exports = {
|
||||||
onboarding: false,
|
onboarding: false,
|
||||||
redisUrl: 'redis://redis',
|
redisUrl: 'redis://redis',
|
||||||
repositoryCache: 'enabled',
|
repositoryCache: 'enabled',
|
||||||
persistRepoData: true
|
persistRepoData: true,
|
||||||
|
binarySource: "docker",
|
||||||
|
dockerUser: "{{ docker_user.id }}",
|
||||||
|
baseDir: "/opt/renovate/renovate",
|
||||||
|
cacheDir: "/opt/renovate/renovate/cache"
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,22 +2,35 @@ version: "2.3"
|
||||||
services:
|
services:
|
||||||
renovate:
|
renovate:
|
||||||
image: renovate/renovate:31-slim
|
image: renovate/renovate:31-slim
|
||||||
user: "{{ docker_user.id }}"
|
|
||||||
command: /entrypoint.sh
|
command: /entrypoint.sh
|
||||||
|
user: "{{ docker_user.id }}"
|
||||||
environment:
|
environment:
|
||||||
- TZ={{ TZ }}
|
- TZ={{ TZ }}
|
||||||
- GITHUB_COM_TOKEN={{ renovate_github_token }}
|
- GITHUB_COM_TOKEN={{ renovate_github_token }}
|
||||||
|
- DOCKER_HOST=tcp://docker_proxy:2375
|
||||||
|
- LOG_LEVEL=debug # Noisy, but required for debugging
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
tmpfs:
|
- docker_proxy
|
||||||
- /tmp
|
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ app_data_dir }}/renovate/config.js:/usr/src/app/config.js:ro"
|
- ./config.js:/usr/src/app/config.js:ro
|
||||||
- "{{ app_data_dir }}/renovate/entrypoint.sh:/entrypoint.sh:ro"
|
- ./entrypoint.sh:/entrypoint.sh:ro
|
||||||
|
- /opt/renovate/renovate:/opt/renovate/renovate # These must be the same
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:6-alpine
|
image: redis:6-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/dbs/redis/renovate:/data
|
- ./redis:/data
|
||||||
|
|
||||||
|
docker_proxy:
|
||||||
|
image: tecnativa/docker-socket-proxy:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- POST=1
|
||||||
|
- CONTAINERS=1
|
||||||
|
- INFO=1
|
||||||
|
- IMAGES=1
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
- name: Install config file
|
- name: Install config file
|
||||||
template:
|
template:
|
||||||
src: files/config.js
|
src: files/config.js
|
||||||
dest: "{{ app_data_dir }}/renovate/config.js"
|
dest: /opt/renovate/config.js
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
notify: restart renovate
|
notify: restart renovate
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
- name: Install custom entrypoint
|
- name: Install custom entrypoint
|
||||||
template:
|
template:
|
||||||
src: files/entrypoint.sh
|
src: files/entrypoint.sh
|
||||||
dest: "{{ app_data_dir }}/renovate/entrypoint.sh"
|
dest: /opt/renovate/entrypoint.sh
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
notify: restart renovate
|
notify: restart renovate
|
||||||
|
|
Loading…
Reference in a new issue