mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +00:00
Add prettier-plugin-sh (#762)
## Description: Add prettier-plugin-sh to format shell files. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
co-authored by
Scott Anderson
parent
6517f80f68
commit
e402687988
@@ -31,7 +31,7 @@ fi
|
||||
|
||||
echo "👤 Setting up openfront user..."
|
||||
# Create openfront user if it doesn't exist
|
||||
if id "openfront" &>/dev/null; then
|
||||
if id "openfront" &> /dev/null; then
|
||||
echo "User openfront already exists"
|
||||
else
|
||||
useradd -m -s /bin/bash openfront
|
||||
@@ -72,7 +72,7 @@ else
|
||||
echo "# UDP buffer size settings for improved QUIC performance" >> /etc/sysctl.conf
|
||||
echo "net.core.rmem_max=7500000" >> /etc/sysctl.conf
|
||||
echo "net.core.wmem_max=7500000" >> /etc/sysctl.conf
|
||||
|
||||
|
||||
# Apply the settings immediately
|
||||
sysctl -p
|
||||
echo "UDP buffer sizes configured and applied"
|
||||
@@ -139,41 +139,41 @@ chown -R openfront:openfront "$OTEL_CONFIG_DIR"
|
||||
# Run Node Exporter
|
||||
echo "🚀 Starting Node Exporter..."
|
||||
docker pull prom/node-exporter:latest
|
||||
docker rm -f node-exporter 2>/dev/null || true
|
||||
docker rm -f node-exporter 2> /dev/null || true
|
||||
docker run -d \
|
||||
--name=node-exporter \
|
||||
--restart=unless-stopped \
|
||||
--net="host" \
|
||||
--pid="host" \
|
||||
-v "/:/host:ro,rslave" \
|
||||
prom/node-exporter:latest \
|
||||
--path.rootfs=/host
|
||||
--name=node-exporter \
|
||||
--restart=unless-stopped \
|
||||
--net="host" \
|
||||
--pid="host" \
|
||||
-v "/:/host:ro,rslave" \
|
||||
prom/node-exporter:latest \
|
||||
--path.rootfs=/host
|
||||
|
||||
# Run OpenTelemetry Collector
|
||||
echo "🚀 Starting OpenTelemetry Collector..."
|
||||
docker pull otel/opentelemetry-collector-contrib:latest
|
||||
docker rm -f otel-collector 2>/dev/null || true
|
||||
docker rm -f otel-collector 2> /dev/null || true
|
||||
# Run OpenTelemetry Collector with appropriate permissions
|
||||
# Run OpenTelemetry Collector
|
||||
echo "🚀 Starting OpenTelemetry Collector..."
|
||||
docker pull otel/opentelemetry-collector-contrib:latest
|
||||
docker rm -f otel-collector 2>/dev/null || true
|
||||
docker rm -f otel-collector 2> /dev/null || true
|
||||
|
||||
docker run -d \
|
||||
--name=otel-collector \
|
||||
--restart=unless-stopped \
|
||||
--network=host \
|
||||
--user=0 \
|
||||
-v "$OTEL_CONFIG_DIR/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro" \
|
||||
-e OTEL_ENDPOINT="${OTEL_ENDPOINT}" \
|
||||
otel/opentelemetry-collector-contrib:latest
|
||||
--name=otel-collector \
|
||||
--restart=unless-stopped \
|
||||
--network=host \
|
||||
--user=0 \
|
||||
-v "$OTEL_CONFIG_DIR/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro" \
|
||||
-e OTEL_ENDPOINT="${OTEL_ENDPOINT}" \
|
||||
otel/opentelemetry-collector-contrib:latest
|
||||
|
||||
# Check if containers are running
|
||||
if docker ps | grep -q node-exporter && docker ps | grep -q otel-collector; then
|
||||
echo "✅ Node Exporter and OpenTelemetry Collector started successfully!"
|
||||
echo "✅ Node Exporter and OpenTelemetry Collector started successfully!"
|
||||
else
|
||||
echo "❌ Failed to start containers. Check logs with: docker logs node-exporter or docker logs otel-collector"
|
||||
exit 1
|
||||
echo "❌ Failed to start containers. Check logs with: docker logs node-exporter or docker logs otel-collector"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "====================================================="
|
||||
@@ -188,4 +188,4 @@ echo "📝 Configuration:"
|
||||
echo " - Config Directory: $OTEL_CONFIG_DIR"
|
||||
echo " - OpenTelemetry Endpoint: $OTEL_ENDPOINT"
|
||||
echo " - Username: $OTEL_USERNAME"
|
||||
echo "====================================================="
|
||||
echo "====================================================="
|
||||
|
||||
Reference in New Issue
Block a user