mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-06-17 17:46:26 +08:00
* feat(apps): Add more Apps using postgresql Squashed commit: move apps - dev to incubator (+29 squashed commit) [e306948ef] bump postgresql [d22c2cc62] bump common [cc5412370] remove ix_values.yaml [ca02334e6] Sync last env's and secrets [34b9d2af1] update gui on ff-syncserver [8dc32c07c] Add description on persistence [3ee0e4dac] Update secrets labels [4192e3af5] Update default-ports [d88de9fbc] fixedEnv on top... [61363ea19] tt-rss [8a124605e] traccar [6de23ed28] teedy [402e3916d] statping [f8da66a8c] shiori [c58d98c29] recipes [2390929fc] openkm [ca4cfcf75] odoo [34a8e0e96] fixedEnv on top [ec3c53f7b] miniflux [b47aab805] librespeed [f7252eeed] whoops [d4e312ff6] kanboard [c9e32f3eb] joplin-server [4a216a442] wikijs [8a529ba57] gotify [1130943a7] ff-sync [f1b43a783] etherpad [7365fe5da] dsmr-reader [ea7a6751e] babybuddy (+1 squashed commits) * enable varrun on librespeed * librespeed no readonly root * run librespeed as root
31 lines
1.5 KiB
Bash
Executable File
31 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
# This script will do some basic processing from k8s-at-home to TrueCharts
|
|
nodeport=36150
|
|
for chart in input/*; do
|
|
if [ -d "${chart}" ]; then
|
|
nodeport=$((nodeport+1))
|
|
basename=$(basename ${chart})
|
|
echo "processing ${chart} using nodeport $nodeport"
|
|
mkdir -p output/${basename}
|
|
cp -rf ../templates/app/SCALE output/${basename}/
|
|
cp -rf ${chart}/ci output/${basename}/ || echo "no CI folder detected, continuing..."
|
|
cp -rf ${chart}/templates output/${basename}/
|
|
cp -rf ${chart}/Chart.yaml output/${basename}/Chart.yaml
|
|
cp -rf ${chart}/.helmignore output/${basename}/.helmignore || echo "helmignore not detected, continuing..."
|
|
cp -rf ${chart}/values.yaml output/${basename}/values.yaml
|
|
iconurl=$(cat ${chart}/Chart.yaml | grep -m 1 icon: ) && iconurl=${iconurl/icon: /}
|
|
sed -i "s|PLACEHOLDERICON|${iconurl}|g" output/${basename}/SCALE/item.yaml
|
|
repo=$(cat ${chart}/values.yaml | grep -m 1 repository: ) && repo=${repo/ repository: /}
|
|
tag=$(cat ${chart}/values.yaml | grep -m 1 tag: ) && tag=${tag/ tag: /}
|
|
sed -i "s|PLACEHOLDERREPO|${repo}|g" output/${basename}/SCALE/ix_values.yaml
|
|
sed -i "s|PLACEHOLDERTAG|${tag}|g" output/${basename}/SCALE/ix_values.yaml
|
|
port=$(cat ${chart}/values.yaml | grep -m 1 port: ) && port=${port/ port: /}
|
|
sed -i "s|PLACEHOLDERPORT|${port}|g" output/${basename}/SCALE/questions.yaml
|
|
sed -i "s|PLACEHOLDERNODEPORT|${nodeport}|g" output/${basename}/SCALE/questions.yaml
|
|
|
|
|
|
fi
|
|
done
|