Skip to content

Commit

Permalink
feat: add ebusd
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Jul 10, 2024
1 parent 9224f40 commit c21261e
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions kubernetes/main/apps/home-automation/ebusd/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
- --foreground
# HTTP Client
- --httpport=8080
- --htmlpath=/config/html
# Log Options
- --log=all:info
# MQTT Options
Expand All @@ -70,20 +71,20 @@ spec:
envFrom:
- secretRef:
name: ebusd-secret
# probes:
# liveness: &probes
# enabled: true
# custom: true
# spec:
# httpGet:
# path: /data
# port: 80
# initialDelaySeconds: 10
# periodSeconds: 10
# timeoutSeconds: 1
# failureThreshold: 3
# readiness: *probes
# startup: *probes
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /data/global
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup: *probes
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -119,7 +120,7 @@ spec:
- -c
- |
(
set -e
set -ex
# Install packages
sudo apt update
Expand All @@ -131,8 +132,8 @@ spec:
sudo apt install --yes net-tools
# Setup git
git config --global user.name "${GITCONFIG_USER_NAME}"
git config --global user.email "${GITCONFIG_USER_MAIL}"
git config --global user.name "$${GITCONFIG_USER_NAME}"
git config --global user.email "$${GITCONFIG_USER_MAIL}"
git config --global branch.autosetuprebase always
git config --global --add safe.directory '/config'
) > /tmp/postStart.log 2>&1 || true
Expand All @@ -146,7 +147,7 @@ spec:
- /bin/bash
- -c
- |
set -e
set -ex
# Clone ebusd-config repository
if [ ! -e "/config/.git" ]; then
Expand All @@ -161,16 +162,16 @@ spec:
fi
# Fetch contrib/html
#if [ ! -e "/config/html/.ebus-$${EBUSD_VERSION#v}" ]; then
if [ ! -e "/config/html/.ebus-$${EBUSD_VERSION#v}" ]; then
mkdir -p /config/html
rm -rf /config/html/*
(
cd /config/html
curl -L https://github.com/john30/ebusd/archive/refs/tags/$${EBUSD_VERSION#v}.tar.gz |
tar xfvz - --strip-components=3 ebusd-$${EBUSD_VERSION#v}/contrib/html
)
echo $${EBUSD_VERSION#v} > /config/html/.ebus-$${EBUSD_VERSION#v}
#fi
touch /config/html/.ebus-$${EBUSD_VERSION#v}
fi
env:
EBUSD_VERSION: *version
envFrom:
Expand Down

0 comments on commit c21261e

Please sign in to comment.