Add chown to fix prometheus permission error
Build Docker Image for Actions / Check-If-Rebuild (push) Successful in 10s Details
Code Quality Test / Quality-Check (push) Successful in 5s Details
Build Docker Image for Actions / Build-Image (push) Has been skipped Details
Environment Setup Test / Setup (push) Successful in 1m51s Details

main
drunkendog 2023-12-20 03:45:31 +00:00
parent c0aa6022fa
commit c1ee39453b
1 changed files with 4 additions and 1 deletions

View File

@ -6,4 +6,7 @@
@ prometheus @ prometheus
% %
@ #ADDITIONAL_REPLACE @ #ADDITIONAL_REPLACE
@ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";") @ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";")
%
@ #START_CONTAINER
@ os.system("mkdir -p /opt/prometheus/data && touch /opt/prometheus/prometheus.yaml && chown -R nobody:nogroup /opt/prometheus/")