2022-04-01 21:33:54 +00:00
image :
2022-04-03 13:03:06 +00:00
repository : tccr.io/truecharts/linkding
2022-10-07 08:59:29 +00:00
tag : 1.15 .1 @sha256:dfefc90e670ffa061295b2b3ab857e8dfbc4c49eec883d824102ce6d3247797c
2022-04-01 21:33:54 +00:00
pullPolicy : IfNotPresent
securityContext :
readOnlyRootFilesystem : false
runAsNonRoot : false
podSecurityContext :
runAsUser : 0
runAsGroup : 0
2022-06-07 17:41:19 +00:00
secretEnv :
2022-04-03 18:23:55 +00:00
DJANGO_SUPERUSER_USERNAME : "superuser"
DJANGO_SUPERUSER_EMAIL : "super@example.com"
DJANGO_SUPERUSER_PASSWORD : "somesecret"
2022-04-01 21:33:54 +00:00
env :
LD_SERVER_PORT : "{{ .Values.service.main.ports.main.port }}"
# User Defined
LD_REQUEST_TIMEOUT : 60
LD_DISABLE_BACKGROUND_TASKS : false
LD_DISABLE_URL_VALIDATION : false
service :
main :
ports :
main :
port : 10210
persistence :
data :
enabled : true
mountPath : "/etc/linkding/data"
2022-04-03 18:23:55 +00:00
lifecycle :
postStart :
exec :
command :
- "/bin/bash"
- "-c"
- |
if [ -f /etc/linkding/data/.superuser_exists ]; then
echo "Superuser has been created before. Skipping...";
else
echo "Creating superuser...";
export status=99;
until [ $status -eq 0 ];
do
python manage.py createsuperuser --username=${DJANGO_SUPERUSER_USERNAME} --email=${DJANGO_SUPERUSER_EMAIL} --noinput;
status=$?;
sleep 3;
done;
echo "This file is to ensure that init script won't try to create a superuser again and fail because it already exsits" > /etc/linkding/data/.superuser_exists;
echo "Superuser Created!";
fi;
2022-08-08 21:25:02 +00:00
portal :
enabled : true