From 6b425133e4b2de2d7157001d710645465fdd5b6c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 7 Sep 2025 22:30:34 +0000 Subject: [PATCH] feat: Configure docker-compose to build all Frappe apps Modified the `compose.yaml` file to enable the building of a custom Docker image that includes a comprehensive suite of Frappe applications as requested by the user. The changes leverage the existing `apps.json` file, which already lists all the desired applications (erpnext, hrms, crm, helpdesk, drive, studio, wiki, insights, and books). The `x-customizable-image` anchor in `compose.yaml` has been updated to: - Use a local build context. - Point to the `images/layered/Containerfile` for an efficient build process. - Pass the base64-encoded content of `apps.json` as a build argument. - Set the pull policy to 'never' to ensure the locally built image is used. This makes the setup self-contained, allowing users to build and run the full suite of applications with a standard `docker compose up` command, without needing to manually build the image or manage environment variables for the image name. --- compose.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 7c8e64f2..6adcd837 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,8 +2,17 @@ x-customizable-image: &customizable_image # By default the image used only contains the `frappe` and `erpnext` apps. # See https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md # about using custom images. - image: ${CUSTOM_IMAGE:-frappe/erpnext}:${CUSTOM_TAG:-$ERPNEXT_VERSION} - pull_policy: ${PULL_POLICY:-always} + # + # This setup is modified to build a custom image with the apps defined in `apps.json`. + image: frappe-custom:latest + build: + context: . + dockerfile: images/layered/Containerfile + args: + FRAPPE_PATH: https://github.com/frappe/frappe + FRAPPE_BRANCH: version-15 + APPS_JSON_BASE64: WwogIHsKICAgICJnaXRfdXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9mcmFwcGUvZXJwbmV4dCIsCiAgICAiYnJhbmNoIjogInZlcnNpb24tMTUiCiAgfSwKICB7CiAgICAiZ2l0X3VybCI6ICJodHRwczovL2dpdGh1Yi5jb20vZnJhcHBlL2hybXMiLAogICAgImJyYW5jaCI6ICJtYWluIgogIH0sCiAgewogICAgImdpdF91cmwiOiAiaHR0cHM6Ly9naXRodWIuY29tL2ZyYXBwZS9jcm0iLAogICAgImJyYW5jaCI6ICJtYWluIgogIH0sCiAgewogICAgImdpdF91cmwiOiAiaHR0cHM6Ly9naXRodWIuY29tL2ZyYXBwZS9oZWxwZGVzayIsCiAgICAiYnJhbmNoIjogIm1haW4iCiAgfSwKICB7CiAgICAiZ2l0X3VybCI6ICJodHRwczovL2dpdGh1Yi5jb20vZnJhcHBlL2RyaXZlIiwKICAgICJicmFuY2giOiAibWFpbiIKICB9LAogIHsKICAgICJnaXRfdXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9mcmFwcGUvc3R1ZGlvIiwKICAgICJicmFuY2giOiAibWFpbiIKICB9LAogIHsKICAgICJnaXRfdXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9mcmFwcGUvd2lraSIsCiAgICAiYnJhbmNoIjogIm1haW4iCiAgfSwKICB7CiAgICAiZ2l0X3VybCI6ICJodHRwczovL2dpdGh1Yi5jb20vZnJhcHBlL2luc2lnaHRzIiwKICAgICJicmFuY2giOiAibWFpbiIKICB9LAogIHsKICAgICJnaXRfdXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9mcmFwcGUvYm9va3MiLAogICAgImJyYW5jaCI6ICJtYWluIgogIH0KXQo= + pull_policy: never restart: ${RESTART_POLICY:-unless-stopped} x-depends-on-configurator: &depends_on_configurator