Initial OpenObserve Cloudron package

This commit is contained in:
Andreas Dueren
2025-08-10 09:10:38 -06:00
commit e48e198274
9 changed files with 561 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM cloudron/base:5.0.0
RUN mkdir -p /app/code /app/data /tmp/data
# Install OpenObserve binary
RUN curl -L https://github.com/openobserve/openobserve/releases/download/v0.10.9/openobserve-v0.10.9-linux-amd64.tar.gz -o /tmp/openobserve.tar.gz \
&& tar -xzf /tmp/openobserve.tar.gz -C /app/code \
&& chmod +x /app/code/openobserve \
&& rm /tmp/openobserve.tar.gz
# Copy configuration files
COPY start.sh /app/code/start.sh
COPY nginx.conf /etc/nginx/sites-available/default
COPY logo.png /app/code/logo.png
# Set permissions
RUN chmod +x /app/code/start.sh \
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data
# Initialize data directory structure
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \
&& chown -R cloudron:cloudron /tmp/data
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:5080/healthz || exit 1
EXPOSE 5080 5081
CMD [ "/app/code/start.sh" ]