replace docker-compose, with docker-in-docker
This commit is contained in:
@@ -5,11 +5,10 @@ dependencies:
|
|||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 14.3.5
|
version: 14.3.5
|
||||||
deprecated: false
|
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
|
home: https://truecharts.org/charts/stable/docker-compose
|
||||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/docker-compose.png
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/docker-compose.png
|
||||||
keywords:
|
keywords:
|
||||||
- docker-compose
|
|
||||||
- docker
|
- docker
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -20,7 +19,7 @@ name: docker-compose
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/stable/docker-compose
|
- https://github.com/truecharts/charts/tree/master/charts/stable/docker-compose
|
||||||
type: application
|
type: application
|
||||||
version: 7.0.25
|
version: 1.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/category: docker
|
truecharts.org/category: docker
|
||||||
truecharts.org/SCALE-support: "true"
|
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{podSpec}
|
||||||
# Include{containerMain}
|
# 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{containerBasic}
|
||||||
# Include{containerAdvanced}
|
# Include{containerAdvanced}
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
@@ -37,25 +37,6 @@ workload:
|
|||||||
type: tcp
|
type: tcp
|
||||||
env:
|
env:
|
||||||
DOCKER_TLS_CERTDIR: /certs
|
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
|
type: StatefulSet
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
Reference in New Issue
Block a user