From dcce330fd0515d0a5d13f40348f314afa2b86364 Mon Sep 17 00:00:00 2001 From: vasileios Date: Thu, 12 Dec 2024 09:36:52 +0100 Subject: [PATCH] [#4874] Added missing fix_selectboxes_component_default_values script to Dockerfile --- .github/pull_request_template.md | 4 ++++ Dockerfile | 1 + docs/installation/additional_scipts.rst | 23 +++++++++++++++++++++++ docs/installation/index.rst | 1 + 4 files changed, 29 insertions(+) create mode 100644 docs/installation/additional_scipts.rst diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b4270decb3..bc18b6f608 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -24,6 +24,10 @@ Check off the items that are completed or not relevant. - [ ] Ran `./bin/makemessages_js.sh` - [ ] Ran `./bin/compilemessages_js.sh` +- Dockerfile/scripts + + - [ ] Updated the Dockerfile with the necessary scripts from the `./bin` folder + - Commit hygiene - [ ] Commit messages refer to the relevant Github issue diff --git a/Dockerfile b/Dockerfile index 3d48433480..2d402cd02a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,6 +93,7 @@ COPY \ ./bin/check_celery_worker_liveness.py \ ./bin/report_component_problems.py \ ./bin/check_temporary_uploads.py \ + ./bin/fix_selectboxes_component_default_values.py \ ./bin/ # prevent writing to the container layer, which would degrade performance. diff --git a/docs/installation/additional_scipts.rst b/docs/installation/additional_scipts.rst new file mode 100644 index 0000000000..158ab6fcb1 --- /dev/null +++ b/docs/installation/additional_scipts.rst @@ -0,0 +1,23 @@ +.. _installation_additional_scripts: + +========================================= +Update Open Forms with additional scripts +========================================= + +Sometimes, upgrading from a specific version of Open Forms to another one requires an extra +script which is necessary for additional operations. In case this script is missing in your +container you can follow the instructions to copy it from the project source. + +1. Visit the source code of Open Forms in github and download the raw file: + +.. code-block:: bash + + $ wget https://github.com/open-formulieren/open-forms/blob/master/ + +2. Copy the downloaded file to the `/app/bin` folder in the container + +.. code-block:: bash + + $ docker cp :/app/bin + +3. Run the script diff --git a/docs/installation/index.rst b/docs/installation/index.rst index f66f149907..40109de616 100644 --- a/docs/installation/index.rst +++ b/docs/installation/index.rst @@ -31,6 +31,7 @@ After installation, follow the :ref:`configuration_index` instructions to enable self_signed form_hosting redis + additional_scipts issues/index upgrade-300 upgrade-250