Skip to content

Commit

Permalink
Merge pull request #657 from EpistasisLab/update_mongodb
Browse files Browse the repository at this point in the history
Update mongo to v5
  • Loading branch information
jay-m-dev authored Oct 7, 2024
2 parents 25bba92 + e5831d6 commit 210e181
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
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

0 comments on commit 210e181

Please sign in to comment.