Skip to content

Commit 7b687cb

Browse files
authored
Merge pull request #580 from MerginMaps/579-release-ce-202522
Upgrade notes for MM CE 2025.2.2
2 parents 2b9bbd8 + 2f21fa0 commit 7b687cb

File tree

1 file changed

+74
-7
lines changed

1 file changed

+74
-7
lines changed

src/server/upgrade/index.md

Lines changed: 74 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,99 @@ Make sure to always back up your database data before doing a migration.
1010

1111
[[toc]]
1212

13-
## Migration guide from 2024.4.x to 2025.2.x
1413

15-
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.0`.
14+
## Migration guide from 2024.2.x to 2025.2.x (CE)
15+
16+
::: tip Before you upgrade!
17+
Release 2025.2.x brings significant changes on <MainPlatformName /> docker compose orchestration infrastructure.
18+
19+
Previous individual `server` container is replaced by 3 service dedicated containers that split the core components of <MainPlatformName />, `server-gunicorn` the app, `celery-beat` Celery task scheduler and `celery-worker` a dedicated worker container for Celery tasks.
20+
:::
21+
22+
<MigrationType type="CE" />
23+
24+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.2`.
1625
Perform the migration:
1726

18-
<MigrationType type="EE" />
27+
1. Stop your running docker containers
28+
```bash
29+
$ docker compose -f docker-compose.yml down # or similarly, based on your deployment
30+
# INFO: After shutdown update the docker-compose.yml file to latest release
31+
```
32+
33+
2. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
34+
```bash
35+
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
36+
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
37+
```
38+
39+
3. Start up your docker containers
40+
- If you stopped the containers during step `1` with new version compose file, you need to manually stop and remove containers.
41+
```bash
42+
$ docker stop merginmaps-db merginmaps-proxy merginmaps-redis merginmaps-server merginmaps-web
43+
$ docker rm merginmaps-db merginmaps-proxy merginmaps-redis merginmaps-server merginmaps-web
44+
```
45+
46+
- After this you can start the new containers
47+
```bash
48+
$ docker compose -f docker-compose.yml -d up # or similarly, based on your deployment
49+
```
50+
51+
4. Check that you are on correct versions (`35af0c8be41e`, `a5d4defded55`).
52+
```bash
53+
$ docker exec merginmaps-server flask db current
54+
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
55+
INFO [alembic.runtime.migration] Will assume transactional DDL.
56+
35af0c8be41e (head)
57+
a5d4defded55
58+
```
59+
60+
- If you do not see the version numbers at all, run the following commands:
61+
```bash
62+
$ docker exec merginmaps-server flask db stamp 35af0c8be41e
63+
$ docker exec merginmaps-server flask db stamp a5d4defded55
64+
```
65+
66+
5. Run the database migration:
67+
```bash
68+
$ docker exec merginmaps-server flask db upgrade heads
69+
```
70+
71+
72+
73+
## Migration guide from 2024.4.x to 2025.2.x
74+
1975
::: tip Before you upgrade!
20-
Release 2025.2.0 brings significant changes on <MainPlatformName /> docker compose orchestration infrastructure.
76+
Release 2025.2.x brings significant changes on <MainPlatformName /> docker compose orchestration infrastructure.
2177

2278
Previous individual `server` container is replaced by 3 service dedicated containers that split the core components of <MainPlatformName />, `server-gunicorn` the app, `celery-beat` Celery task scheduler and `celery-worker` a dedicated worker container for Celery tasks.
2379
:::
2480

81+
<MigrationType type="EE" />
82+
83+
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually to version `2025.2.0`.
84+
Perform the migration:
85+
2586
1. Stop your running docker containers and build the new images
2687
```bash
2788
$ docker compose -f docker-compose.yml down # or similarly, based on your deployment
2889
# INFO: After shutdown update the docker-compose.yml file to latest release
2990
```
3091

31-
2. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
32-
92+
2. Double check if below environment variables are available and filled in `.prod.env` environment file. If not, add them.
3393
```bash
3494
SECURITY_EMAIL_SALT='<YOUR STRONG HASH>'
3595
SECURITY_BEARER_SALT='<YOUR STRONG HASH>'
3696
```
3797

3898
3. Start up your docker containers
99+
- If you stopped the containers during step `1` with new version compose file, you need to manually stop and remove containers.
100+
```bash
101+
$ docker stop merginmaps-db merginmaps-proxy merginmaps-redis merginmaps-server merginmaps-web
102+
$ docker rm merginmaps-db merginmaps-proxy merginmaps-redis merginmaps-server merginmaps-web
103+
```
104+
105+
- After this you can start the new containers
39106
```bash
40107
$ docker compose -f docker-compose.yml -d up # or similarly, based on your deployment
41108
```
@@ -125,7 +192,7 @@ Perform the migration:
125192
$ docker exec merginmaps-server flask db upgrade community@0e3fc92aeaaa
126193
```
127194

128-
## Migration guide from 2023.6.1 to 2024.2.x
195+
## Migration guide from 2023.6.1 to 2024.2.x (CE)
129196

130197
Get the latest <GitHubRepo id="MerginMaps/server/blob/master/docker-compose.yml" desc="docker-compose file" /> or update docker images manually.
131198

0 commit comments

Comments
 (0)