replace docker-compose, with docker-in-docker

This commit is contained in:
Kjeld Schouten
2023-11-28 17:06:26 +01:00
parent 0027f3756f
commit c4f9780711
9 changed files with 3 additions and 35 deletions
@@ -5,11 +5,10 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 14.3.5
deprecated: false
description: Dedicated App for using Docker-Compose on TrueNAS SCALE
description: Dedicated App for using Docker-in-Docker
home: https://truecharts.org/charts/stable/docker-compose
icon: https://truecharts.org/img/hotlink-ok/chart-icons/docker-compose.png
keywords:
- docker-compose
- docker
kubeVersion: ">=1.16.0-0"
maintainers:
@@ -20,7 +19,7 @@ name: docker-compose
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/docker-compose
type: application
version: 7.0.25
version: 1.0.0
annotations:
truecharts.org/category: docker
truecharts.org/SCALE-support: "true"

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

@@ -9,19 +9,7 @@ questions:
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: COMPOSE_FILE
label: Docker Compose File
description: Path of the compose file you want to load. You MUST mount the storage yourself
schema:
type: string
default: ""
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
@@ -37,25 +37,6 @@ workload:
type: tcp
env:
DOCKER_TLS_CERTDIR: /certs
COMPOSE_FILE: ""
lifecycle:
postStart:
type: exec
command:
- /bin/bash
- -c
- |
if [ "${COMPOSE_FILE}" ]; then
counter=0;
while ! docker info > /dev/null 2>&1 && [[ ${counter} -lt 10 ]]; do
echo "docker not running yet. Waiting..." >> /proc/1/fd/1;
sleep 5;
counter=$((counter+1));
done
docker-compose -f "${COMPOSE_FILE}" up -d && echo "Loaded COMPOSE_FILE at location ${COMPOSE_FILE}" >> /proc/1/fd/1;
else
echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1;
fi
type: StatefulSet
replicas: 1
strategy: RollingUpdate