1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-12 05:38:51 +09:00
MisskeyIO/healthcheck.sh
파링 dee662705e
fix docker health check (#9810)
* fix(healthcheck): use default commands instead of yq

this removes yq command and uses grep and awk to get port

* fix: use correct config file

* fix: install curl in runner instead of builder

* fix: remove unused packages
2023-02-08 17:59:10 +09:00

5 lines
145 B
Bash

#!/bin/bash
PORT=$(grep '^port:' /misskey/.config/default.yml | awk 'NR==1{print $2; exit}')
curl -s -S -o /dev/null "http://localhost:${PORT}"