feat: add pg exporter
This commit is contained in:
parent
20ee345bbf
commit
14d4daa844
1 changed files with 25 additions and 15 deletions
10
start.sh
10
start.sh
|
@ -17,6 +17,7 @@ fi
|
||||||
podman pod create \
|
podman pod create \
|
||||||
-p 3000:3000 \
|
-p 3000:3000 \
|
||||||
-p 2052:2222 \
|
-p 2052:2222 \
|
||||||
|
-p 3001:9187 \
|
||||||
--replace \
|
--replace \
|
||||||
"code-forge"
|
"code-forge"
|
||||||
|
|
||||||
|
@ -50,6 +51,14 @@ until [[ $response = *"200 OK"* ]]; do
|
||||||
echo "Waiting for app to respond..."
|
echo "Waiting for app to respond..."
|
||||||
done
|
done
|
||||||
|
|
||||||
|
podman run -d \
|
||||||
|
--env-file "$ENV_FILE_DIR"/code-forge-exporter.env \
|
||||||
|
--pod code-forge \
|
||||||
|
--replace \
|
||||||
|
--name "code-forge-pg-exporter" \
|
||||||
|
quay.io/prometheuscommunity/postgres-exporter
|
||||||
|
|
||||||
|
if [[ -n $START_RUNNER ]]; then
|
||||||
wget -O "$FORGEJO_RUNNER_ROOT"/forgejo-runner https://code.forgejo.org/forgejo/runner/releases/download/v3.3.0/forgejo-runner-3.3.0-linux-amd64
|
wget -O "$FORGEJO_RUNNER_ROOT"/forgejo-runner https://code.forgejo.org/forgejo/runner/releases/download/v3.3.0/forgejo-runner-3.3.0-linux-amd64
|
||||||
chmod +x "$FORGEJO_RUNNER_ROOT"/forgejo-runner
|
chmod +x "$FORGEJO_RUNNER_ROOT"/forgejo-runner
|
||||||
wget -O forgejo-runner.asc https://code.forgejo.org/forgejo/runner/releases/download/v3.3.0/forgejo-runner-3.3.0-linux-amd64.asc
|
wget -O forgejo-runner.asc https://code.forgejo.org/forgejo/runner/releases/download/v3.3.0/forgejo-runner-3.3.0-linux-amd64.asc
|
||||||
|
@ -68,3 +77,4 @@ else
|
||||||
echo "Use $FORGEJO_RUNNER_ROOT/forgejo-runner register ... to register the runner"
|
echo "Use $FORGEJO_RUNNER_ROOT/forgejo-runner register ... to register the runner"
|
||||||
echo "Once registered, use $FORGEJO_RUNNER_ROOT/forgejo-runner --config <path-to-config> daemon & to start"
|
echo "Once registered, use $FORGEJO_RUNNER_ROOT/forgejo-runner --config <path-to-config> daemon & to start"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue