🔨 Remove docker user and add group-add 0

This commit is contained in:
SebClem 2022-05-10 10:38:28 +02:00
parent d0e648b3d5
commit 671a60164b
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
4 changed files with 3 additions and 8 deletions

View File

@ -1,7 +1,3 @@
{ {
"recommendations": [ "recommendations": ["redhat.ansible", "esbenp.prettier-vscode"]
"redhat.ansible",
"dhoeric.ansible-vault",
"esbenp.prettier-vscode"
]
} }

View File

@ -10,4 +10,4 @@ renovate_github_token: ""
renovate_log_level: info renovate_log_level: info
renovate_bot_username: renovate-bot renovate_bot_username: renovate-bot
renovate_webhook_secret: "" renovate_webhook_secret: ""
renovate_docker_user_group: "1000:1000" # renovate_docker_user_group: "1000:1000"

View File

@ -4,7 +4,6 @@ module.exports = {
endpoint: '{{ renovate_git_endpoint }}', endpoint: '{{ renovate_git_endpoint }}',
token: '{{ renovate_git_token }}', token: '{{ renovate_git_token }}',
platform: '{{ renovate_platform }}', platform: '{{ renovate_platform }}',
dockerUser: "{{ renovate_docker_user_group }}",
autodiscover: true, autodiscover: true,
onboardingConfig: { onboardingConfig: {
extends: ['config:base'], extends: ['config:base'],

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
docker run --pull always --rm -v "/etc/renovate/config.js:/usr/src/app/config.js" -v "/var/run/docker.sock:/var/run/docker.sock" -v /tmp:/tmp -u "{{ renovate_docker_user_group }}" --env GITHUB_COM_TOKEN="{{ renovate_github_token }}" --env LOG_LEVEL={{ renovate_log_level }} {{ renovate_image_name }}:{{ renovate_image_tag }} renovate "$@" docker run --pull always --group-add 0 --rm -v "/etc/renovate/config.js:/usr/src/app/config.js" -v "/var/run/docker.sock:/var/run/docker.sock" -v /tmp:/tmp -u "{{ renovate_docker_user_group }}" --env GITHUB_COM_TOKEN="{{ renovate_github_token }}" --env LOG_LEVEL={{ renovate_log_level }} {{ renovate_image_name }}:{{ renovate_image_tag }} renovate "$@"
docker image prune -f docker image prune -f