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

chore(deps): update metabase/metabase docker tag to v0.50.30.1 #7454

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
16 changes: 0 additions & 16 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ vulnerabilities:
statement: Dashboards vulns (java libs)
- id: CVE-2022-1471
statement: Dashboards vulns (java libs)
- id: CVE-2024-25710
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49
- id: CVE-2024-26308
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49
- id: CVE-2024-22201
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49
- id: CVE-2023-36478
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49
- id: CVE-2024-21634
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.49
- id: CVE-2024-4068
statement: Transitive dependency of jest and msw. Not running in production. Likely fixed by upgrading.
- id: CVE-2024-37890
Expand All @@ -57,9 +47,3 @@ vulnerabilities:
statement: Transitive dependency of react-router 5.3.4. Only affects client-side code ocrvs-7682
- id: CVE-2024-47068
statement: Transitive dependency of Vite. Not run in production and there is currently no fix.
- id: CVE-2024-7254
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607
- id: CVE-2024-41909
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607
- id: CVE-2024-22871
statement: Metabase v0.46 vulnerability, fixed in Metabase v0.50 ocrvs-6607
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## 1.7.0 Release candidate

### Migration guide

- To make sure that `dashboard` still works after migrating to `v1.7.0`, you would need to:

- ssh into your server
- stop `opencrvs_dashboard`
- delete `metabase.mv.db` from `/data/metabase/`
- start `opencrvs_dashboard`

```
ssh [email protected]
docker service scale opencrvs_dashboards=0
sudo rm /data/metabase/metabase.mv.db
docker service scale opencrvs_dashboards=1
```

### Breaking changes

- **Title** Description
Expand Down
5 changes: 3 additions & 2 deletions packages/dashboards/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM metabase/metabase:v0.46.6.4
FROM metabase/metabase:v0.50.30.1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARG VERSION
ENV METABASE_JAR=/app/metabase.jar
ENV MB_DB_INIT_SQL_FILE=/metabase.init.db.sql
ENV MB_DB_FILE=/data/metabase/metabase_${VERSION}.mv.db

ADD packages/dashboards/run.sh /
ADD packages/dashboards/initialize-database.sh /
ADD packages/dashboards/update-database.sh /
ADD packages/dashboards/environment-configuration.sql /
ADD packages/dashboards/metabase.init.db.sql /

ARG VERSION
ENV METABASE_JAR=/app/metabase.jar
ENV MB_DB_INIT_SQL_FILE=/metabase.init.db.sql
ENV MB_DB_FILE=/data/metabase/metabase.mv.db
ENV MB_DB_FILE=/data/metabase/metabase_${VERSION}.mv.db
ENV OPENCRVS_ENVIRONMENT_CONFIGURATION_SQL_FILE=/environment-configuration.sql

# Install envsubst, uuidgen
Expand Down
Loading
Loading