|
| 1 | +--- |
| 2 | +title: Upgrade from DSF 2.0.0 |
| 3 | +icon: update |
| 4 | +--- |
| 5 | + |
| 6 | +::: info DSF 2.0.1 |
| 7 | +This is one of the first **released versions** of the Data Sharing Framework (DSF) 2.0. |
| 8 | +Please **do not use this version in production environments**. |
| 9 | + |
| 10 | +We kindly invite **all DSF administrators** to test this release on their **staging or test instances** and share their feedback with us through the usual [communication channels](/community/communication#contact-the-team). |
| 11 | + |
| 12 | +Thank you for helping us improve the DSF! |
| 13 | +::: |
| 14 | + |
| 15 | +Upgrading the DSF from 2.0.0 to 2.0.1 involves modifying the version the docker-compose.yml files and recreating the containers. |
| 16 | + |
| 17 | + |
| 18 | +DSF 2 was designed to run DSF 1 (APIv1) process plugins, but due to stricter validation rules in DSF 2 we strongly recommend using the latest compatible plugin versions. Updates within the same major and minor version (e.g., from 1.2.3.4 to 1.2.9.9) are generally safe. An overview of the recommended MII/NUM versions can be found [here](./install-plugins.md). |
| 19 | + |
| 20 | +## Modify DSF FHIR Server Setup |
| 21 | +1. Preparation / Backup |
| 22 | + * We recommend to create a backup of the `/opt/fhir` directory before proceeding with the upgrade. |
| 23 | + For example using: `sudo cp -rp /opt/fhir /opt/fhir_backup_pre_2.0.1_upgrade` |
| 24 | + |
| 25 | +2. Modify the DSF FHIR docker-compose.yml file, replace the version number with 2.0.1. |
| 26 | +```diff |
| 27 | + version: '3.8' |
| 28 | + services: |
| 29 | + proxy: |
| 30 | +- image: ghcr.io/datasharingframework/fhir_proxy:2.0.0 |
| 31 | ++ image: ghcr.io/datasharingframework/fhir_proxy:2.0.1 |
| 32 | + restart: on-failure |
| 33 | +... |
| 34 | + app: |
| 35 | +- image: ghcr.io/datasharingframework/fhir:2.0.0 |
| 36 | ++ image: ghcr.io/datasharingframework/fhir:2.0.1 |
| 37 | + restart: on-failure |
| 38 | +... |
| 39 | + |
| 40 | +``` |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +3. Upgrade the DSF FHIR containers |
| 45 | + From `/opt/fhir` execute |
| 46 | + ``` |
| 47 | + docker compose up -d && docker compose logs -f |
| 48 | + ``` |
| 49 | +
|
| 50 | +## Modify DSF BPE Server Setup |
| 51 | +1. Preparation / Backup |
| 52 | + * We recommend to create a backup of the `/opt/bpe` directory before proceeding with the upgrade. |
| 53 | + For example using: `sudo cp -rp /opt/bpe /opt/bpe_backup_pre_2.0.1_upgrade` |
| 54 | +
|
| 55 | +2. Modify the DSF BPE docker-compose.yml file, replace the version number with 2.0.1. |
| 56 | +```diff |
| 57 | + version: '3.8' |
| 58 | + services: |
| 59 | + app: |
| 60 | +- image: ghcr.io/datasharingframework/bpe:2.0.0 |
| 61 | ++ image: ghcr.io/datasharingframework/bpe:2.0.1 |
| 62 | + restart: on-failure |
| 63 | +... |
| 64 | +
|
| 65 | + |
| 66 | +``` |
| 67 | + |
| 68 | +3. Upgrade the DSF BPE containers |
| 69 | + From `/opt/bpe` execute |
| 70 | + ``` |
| 71 | + docker compose up -d && docker compose logs -f |
| 72 | + ``` |
| 73 | +
|
| 74 | +5. Verify your upgrade: |
| 75 | + * Verify the DSF FHIR server is running in version 2.0.0. The log should contain a message: |
| 76 | + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-fhir-server-jetty, version: 2.0.1, [...]` |
| 77 | + * Verify the DSF FHIR server started without errors |
| 78 | + * Verify the DSF FHIR server is accessible via https, for example by browsing to https://your-dsf-endpoint.de/fhir/ (authentication with your client-certificate) |
| 79 | + * Verify the DSF BPE server is running in version 2.0.0. The log should contain a message: |
| 80 | + `INFO main - BuildInfoReaderImpl.logBuildInfo(137) | Artifact: dsf-bpe-server-jetty, version: 2.0.1, [...]` |
| 81 | + * Verify the DSF BPE server started without errors |
| 82 | + * Verify your install with a ping/pong test |
| 83 | +
|
0 commit comments