mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): use PROMETHEUS_MULTIPROC_DIR
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
f21765bfe4
commit
1be4ac2fde
3 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,7 @@ services:
|
||||||
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
||||||
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
||||||
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
||||||
|
- PROMETHEUS_MULTIPROC_DIR=/tmp_prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,7 @@ services:
|
||||||
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
||||||
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
||||||
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
||||||
|
- PROMETHEUS_MULTIPROC_DIR=/tmp_prometheus
|
||||||
entrypoint: /docker/fastapi-entrypoint.sh
|
entrypoint: /docker/fastapi-entrypoint.sh
|
||||||
command: /docker/scripts/run-fastapi.sh "${FASTAPI_BACKEND}"
|
command: /docker/scripts/run-fastapi.sh "${FASTAPI_BACKEND}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
|
@ -18,4 +18,7 @@ fi
|
||||||
sed -ri "s|^(git_clone_uri_anon) = .+|\1 = ${AURWEB_FASTAPI_PREFIX}/%s.git|" conf/config.defaults
|
sed -ri "s|^(git_clone_uri_anon) = .+|\1 = ${AURWEB_FASTAPI_PREFIX}/%s.git|" conf/config.defaults
|
||||||
sed -ri "s|^(git_clone_uri_priv) = .+|\1 = ${AURWEB_SSHD_PREFIX}/%s.git|" conf/config.defaults
|
sed -ri "s|^(git_clone_uri_priv) = .+|\1 = ${AURWEB_SSHD_PREFIX}/%s.git|" conf/config.defaults
|
||||||
|
|
||||||
|
rm -rf $PROMETHEUS_MULTIPROC_DIR
|
||||||
|
mkdir -p $PROMETHEUS_MULTIPROC_DIR
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Add table
Reference in a new issue