mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
chore: switch container entrypoint from shard to start
This commit is contained in:
1 parent
0a2bbc75d8
commit
fbe052b9da
3 files changed
+12
-2
No files matched your search
+1
-1
@@ -47,4 +47,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["npm", "run", "shard"]
|
CMD ["npm", "start"]
|
||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
container_name: remix-bot
|
container_name: remix-bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: npm run shard
|
command: npm start
|
||||||
depends_on:
|
depends_on:
|
||||||
mysql:
|
mysql:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -32,8 +32,18 @@ if [ "$1" = "node" ] && [ "$2" = "shard.mjs" ]; then
|
|||||||
echo "[Docker] Starting Remix bot (sharded supervisor)..."
|
echo "[Docker] Starting Remix bot (sharded supervisor)..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "npm" ] && [ "$2" = "start" ]; then
|
||||||
|
echo "[Docker] Starting Remix bot (standard start)..."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "npm" ] && [ "$2" = "run" ] && [ "$3" = "shard" ]; then
|
if [ "$1" = "npm" ] && [ "$2" = "run" ] && [ "$3" = "shard" ]; then
|
||||||
echo "[Docker] Starting Remix bot (sharded supervisor via npm run shard)..."
|
echo "[Docker] Starting Remix bot (sharded supervisor via npm run shard)..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "[Docker] Testing cluster egress IP and api.fluxer.app TLS connection..."
|
||||||
|
echo -n "[Docker] Cluster Public IP: "
|
||||||
|
curl -s -m 5 https://api.ipify.org || echo "Failed to get IP"
|
||||||
|
echo ""
|
||||||
|
curl -v -m 5 https://api.fluxer.app/v1/gateway/bot 2>&1 | head -n 25 || true
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
Reference in new issue
Block a user