From 613030662aa905f633268783c35bb52d2009f2bd Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo Date: Wed, 18 Oct 2023 21:43:58 +0700 Subject: [PATCH] Add recipe for rekalogika/gotenberg-pdf-bundle (#1552) * Add recipe for rekalogika/gotenberg-pdf-bundle * ends files with newlines * use GOTENBERG_URL, but retain GOTENBERG_HOST and GOTENBERG_PORT * add env comment for clarity --- .../packages/rekalogika_gotenberg_pdf.yaml | 2 ++ .../gotenberg-pdf-bundle/1.0/manifest.json | 32 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 rekalogika/gotenberg-pdf-bundle/1.0/config/packages/rekalogika_gotenberg_pdf.yaml create mode 100644 rekalogika/gotenberg-pdf-bundle/1.0/manifest.json diff --git a/rekalogika/gotenberg-pdf-bundle/1.0/config/packages/rekalogika_gotenberg_pdf.yaml b/rekalogika/gotenberg-pdf-bundle/1.0/config/packages/rekalogika_gotenberg_pdf.yaml new file mode 100644 index 000000000..ab1d54bff --- /dev/null +++ b/rekalogika/gotenberg-pdf-bundle/1.0/config/packages/rekalogika_gotenberg_pdf.yaml @@ -0,0 +1,2 @@ +rekalogika_gotenberg_pdf: + url: '%env(GOTENBERG_URL)%' diff --git a/rekalogika/gotenberg-pdf-bundle/1.0/manifest.json b/rekalogika/gotenberg-pdf-bundle/1.0/manifest.json new file mode 100644 index 000000000..f251f735d --- /dev/null +++ b/rekalogika/gotenberg-pdf-bundle/1.0/manifest.json @@ -0,0 +1,32 @@ +{ + "bundles": { + "Rekalogika\\GotenbergPdfBundle\\RekalogikaGotenbergPdfBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "The variables GOTENBERG_HOST & GOTENBERG_PORT are only used for Docker", + "#2": "integration. The library uses only GOTENBERG_URL. You can override", + "#3": "GOTENBERG_URL and safely ignore GOTENBERG_HOST & GOTENBERG_PORT.", + "GOTENBERG_HOST": "localhost", + "GOTENBERG_PORT": "3000", + "GOTENBERG_URL": "http://${GOTENBERG_HOST}:${GOTENBERG_PORT}" + }, + "docker-compose": { + "docker-compose.yml": { + "services": [ + "gotenberg:", + " image: docker.io/gotenberg/gotenberg:7" + ] + }, + "docker-compose.override.yml": { + "services": [ + "gotenberg:", + " ports:", + " - \"3000\"" + ] + } + } +} +