Skip to content

Commit

Permalink
[#4874] Added missing fix_selectboxes_component_default_values script…
Browse files Browse the repository at this point in the history
… to Dockerfile

Backport-of: #4898
  • Loading branch information
vaszig authored and sergei-maertens committed Dec 12, 2024
1 parent b0620f5 commit 8719238
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ RUN mkdir /app/bin /app/log /app/media /app/private_media /app/certifi_ca_bundle
COPY \
./bin/check_celery_worker_liveness.py \
./bin/report_component_problems.py \
./bin/fix_selectboxes_component_default_values.py \
./bin/

# prevent writing to the container layer, which would degrade performance.
Expand Down
23 changes: 23 additions & 0 deletions docs/installation/additional_scipts.rst
Original file line number Diff line number Diff line change
@@ -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/<name_of_the_file>
2. Copy the downloaded file to the `/app/bin` folder in the container

.. code-block:: bash
$ docker cp <file_name> <container_id_or_name>:/app/bin
3. Run the script
1 change: 1 addition & 0 deletions docs/installation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and expertise.
self_signed
form_hosting
redis
additional_scipts
issues/index
upgrade-240
upgrade-250

0 comments on commit 8719238

Please sign in to comment.