Skip to content

Commit

Permalink
Staging upgrade mongo 5 (#6888)
Browse files Browse the repository at this point in the history
* Upgrade github actions mongodb version

* Upgrade mongodb version in gh actions

* Bump mongo to 5 in ci

* Update readme and package version

* Update mongo in docker compose
  • Loading branch information
fnocetti authored Jun 13, 2024
1 parent e9ccc7b commit d9f324d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_check_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2.6
mongodb-version: 5.0.27
mongodb-replica-set: test-rs
- uses: actions/checkout@v4
- name: Use Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_e2e_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2.6
mongodb-version: 5.0.27
mongodb-replica-set: test-rs
- name: Checkout reposistory
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_e2e_puppeteer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2.6
mongodb-version: 5.0.27
mongodb-replica-set: test-rs
- name: Checkout reposistory
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2.6
mongodb-version: 5.0.27
mongodb-replica-set: uwazi_replica_set
mongodb-port: 27017

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Before anything else you will need to install the application dependencies:
- **ElasticSearch 7.17.6** https://www.elastic.co/downloads/past-releases/elasticsearch-7-17-6 Please note that ElasticSearch requires Java. Follow the instructions to install the package manually, you also probably need to disable ml module in the ElasticSearch config file:
`xpack.ml.enabled: false`
- **ICU Analysis Plugin (recommended)** [installation](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html#analysis-icu) Adds support for number sorting in texts and solves other language sorting nuances. This option is activated by setting the env var USE_ELASTIC_ICU=true before running the server (defaults to false/unset).
- **MongoDB 4.2** https://docs.mongodb.com/v4.2/installation/ . If you have a previous version installed, please follow the instructions on how to [upgrade here](https://docs.mongodb.com/manual/release-notes/4.2-upgrade-standalone/). The new mongosh dependency needs to be added [installation](https://www.mongodb.com/docs/mongodb-shell/).
- **MongoDB 5.0.27** https://docs.mongodb.com/v4.2/installation/ . If you have a previous version installed, please follow the instructions on how to [upgrade here](https://docs.mongodb.com/manual/release-notes/4.2-upgrade-standalone/). The new mongosh dependency needs to be added [installation](https://www.mongodb.com/docs/mongodb-shell/).
- **Yarn** https://yarnpkg.com/en/docs/install.
- **pdftotext (Poppler)** tested to work on version 0.86 but it's recommended to use the latest available for your platform https://poppler.freedesktop.org/. Make sure to **install libjpeg-dev** if you build from source.

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- cluster.routing.allocation.disk.threshold_enabled=false

mongo:
image: "mongo:4.2"
image: "mongo:5.0.27"
container_name: uwazi-mongo
command: mongod --replSet "uwazi_replica_set"
volumes:
Expand All @@ -26,7 +26,7 @@ services:
- '27017:27017'

mongoreplicaset_start_script:
image: "mongo:4.2"
image: "mongo:5.0.27"
restart: "no"
container_name: mongoreplicaset_start_script
depends_on:
Expand Down

0 comments on commit d9f324d

Please sign in to comment.