This commit is contained in:
@@ -101,9 +101,12 @@ describe("modern compose files preserve runtime semantics", () => {
|
||||
const api = parsed.services?.['sandbox-api']
|
||||
|
||||
expect(parsed['x-runtipi']?.schema_version).toBe(2)
|
||||
const certCommand = certs?.command?.join(' ') || ''
|
||||
expect(certs?.restart).toBe('unless-stopped')
|
||||
expect(certs?.command?.join(' ')).toContain('touch /tmp/certs-ready')
|
||||
expect(certs?.command?.join(' ')).toContain('tail -f /dev/null')
|
||||
expect(certCommand).toContain('rm -f /tmp/certs-ready')
|
||||
expect(certCommand).toContain('touch /tmp/certs-ready')
|
||||
expect(certCommand).toContain('tail -f /dev/null')
|
||||
expect(certCommand.indexOf('rm -f /tmp/certs-ready')).toBeLessThan(certCommand.indexOf('bootstrap-mtls.sh'))
|
||||
expect(certs?.healthcheck?.test).toContain('test -f /tmp/certs-ready')
|
||||
expect(api?.depends_on?.['sandbox-certs']?.condition).toBe('service_healthy')
|
||||
expect(api?.['x-runtipi']?.is_main).toBe(true)
|
||||
|
||||
@@ -41,6 +41,7 @@ services:
|
||||
# puis reste actif sans ouvrir de port ni lancer de service reseau.
|
||||
command:
|
||||
- >
|
||||
rm -f /tmp/certs-ready &&
|
||||
bootstrap-mtls.sh --out-dir /tls --api-san sandbox-api
|
||||
--control-san-prefix sandbox-runner &&
|
||||
chown -R sandbox-api:sandbox-api /tls/api /var/lib/n8n-sandbox-api &&
|
||||
|
||||
Reference in New Issue
Block a user