Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4874] Add missing script to the Dockerfile #4898

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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.
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 @@ -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
Expand Down
Loading