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

Update mongo to v5 #657

Merged
merged 4 commits into from
Oct 7, 2024
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 .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ relative_files = True
; regardless of whether it runs locally or within a Docker container.
parallel = True

; omit scikit-surprise (custom package) GH runner tests Coveralls on python3.12?
omit =
/src/scikit-surprise/surprise/*

[paths]
; the first path is the path on the local (travis) filesystem
; the second path is the path as it appears within the Docker container
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/aliro_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:

# Runs a single command using the runners shell
- name: Build Docker Images
run: docker-compose -f ./docker-compose-int-test.yml build -m 8g
run: docker compose -f ./docker-compose-int-test.yml build -m 8g

# Runs a set of commands using the runners shell
- name: Run Integration Tests
run: |
docker-compose -f ./docker-compose-int-test.yml run tester bash -c "sh /root/wait_pennai.sh && npm test"
docker-compose -f ./docker-compose-int-test.yml down
docker compose -f ./docker-compose-int-test.yml run tester bash -c "sh /root/wait_pennai.sh && npm test"
docker compose -f ./docker-compose-int-test.yml down

build_web_app:
name: Unit Tests for Webapp
Expand All @@ -50,13 +50,13 @@ jobs:
# Runs a single command using the runners shell
- name: Build Docker Images
run: |
docker-compose -f ./docker-compose-unit-test.yml build -m 8g
docker compose -f ./docker-compose-unit-test.yml build -m 8g

# Runs a set of commands using the runners shell
- name: Run Unit Tests
run: |
git lfs fetch --all
docker-compose -f ./docker-compose-unit-test.yml up --abort-on-container-exit -V
docker compose -f ./docker-compose-unit-test.yml up --abort-on-container-exit -V
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
Expand All @@ -77,13 +77,13 @@ jobs:
- name: Build Docker Images
run: |
pip install coveralls
docker-compose -f ./docker-compose-unit-test.yml build -m 8g
docker compose -f ./docker-compose-unit-test.yml build -m 8g
# Runs a set of commands using the runners shell
- name: Run Unit Tests
run: |
git lfs fetch --all
git lfs pull
docker run -v $(pwd):/appsrc -w /appsrc aliro_unit_tester coverage run -m nose -s -v ai/tests/test_sklearn_api.py
docker run -v $(pwd):/appsrc -w /appsrc aliro-unit_tester coverage run -m nose -s -v ai/tests/test_sklearn_api.py
coverage combine
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
Expand Down Expand Up @@ -145,11 +145,11 @@ jobs:

- name: Build Docker Images
run: |
docker-compose -f ./docker-compose-doc-builder.yml build -m 8g
docker compose -f ./docker-compose-doc-builder.yml build -m 8g
# Building docs # Tell GitHub not to use jekyll to compile the docs
- name: Building Docs
run: |
docker-compose -f ./docker-compose-doc-builder.yml up --abort-on-container-exit --force-recreate
docker compose -f ./docker-compose-doc-builder.yml up --abort-on-container-exit --force-recreate
sudo touch target/ai_docs/html/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions docker/dbmongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build stage with all necessary files
FROM mongo:4.4.18 AS builder
FROM mongo:5.0.29 AS builder

WORKDIR /opt/

Expand All @@ -21,7 +21,7 @@ RUN apt-get update && apt-get install -y dos2unix && \
apt-get clean

# Stage 2: Final runtime image
FROM mongo:4.4.18
FROM mongo:5.0.29

# Copy required configurations and scripts from the builder stage
COPY --from=builder /etc/mongod.conf /etc/
Expand Down
Loading