feat(apps): Add LSIO based Apps (#1500)
* feat(apps): Add LSIO based Apps * try different config dir for scrutiny * remove comments * some work on icons/descriptions * more icons/description * more icons/desc! * shorten descriptions * make desc oneliner * sync security options to questions * sync storage * add services * doc ports * fix port conflicts * document ports * sync env-vars Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
committed by
GitHub
parent
552c132767
commit
779e144f20
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The format of the to-app.txt file is as follows:
|
||||
# PORT:tccr.io/truecharts/CHART:TAG
|
||||
|
||||
for i in $(cat to-app.txt); do
|
||||
|
||||
SOURCE=${i##*/}
|
||||
PORT=$( echo $i | cut -d':' -f1 )
|
||||
PLAIN=$( echo $SOURCE | cut -d':' -f1 )
|
||||
TAG=$( echo $SOURCE | cut -d':' -f2 )
|
||||
CLEANTAG=${TAG//$'\r'/}
|
||||
CLEANPORT=${PORT//$'\r'/}
|
||||
CLEAN=${PLAIN//$'\r'/}
|
||||
echo "${CLEAN##*|} ${CLEANTAG}"
|
||||
mkdir -p charts/dev/${CLEAN}
|
||||
cp -rf templates/app/* charts/dev/${CLEAN}
|
||||
sed -i "s|CHARTNAME|${CLEAN}|g" charts/dev/${CLEAN}/Chart.yaml
|
||||
sed -i "s|CHARTNAME|${CLEAN}|g" charts/dev/${CLEAN}/values.yaml
|
||||
sed -i "s|CHARTTAG|${CLEANTAG}|g" charts/dev/${CLEAN}/values.yaml
|
||||
sed -i "s|CHARTPORT|${CLEANPORT}|g" charts/dev/${CLEAN}/values.yaml
|
||||
sed -i "s|CHARTPORT|${CLEANPORT}|g" charts/dev/${CLEAN}/questions.yaml
|
||||
done
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The format of the to-app.txt file is as follows:
|
||||
# tccr.io/truecharts/CHART:TAG
|
||||
|
||||
for i in $(cat to-app.txt); do
|
||||
|
||||
PLAIN=${i##*/}
|
||||
PLAIN=$( echo $PLAIN | cut -d':' -f1 )
|
||||
CLEAN=${PLAIN//$'\r'/}
|
||||
echo ${CLEAN##*|}
|
||||
PORT=$(curl -v --silent https://raw.githubusercontent.com/linuxserver/docker-${CLEAN}/master/README.md | grep " \-p" | grep ':' | head -1 | cut -d':' -f1 | cut -d' ' -f4)
|
||||
echo "${PORT}:${i}" >> output.txt
|
||||
done
|
||||
Reference in New Issue
Block a user