Skip to content

Commit

Permalink
Fix/plat 2 checks stable (#180)
Browse files Browse the repository at this point in the history
* Add missing pip package to server image (#179)

* Update Plat2 controller queue var

* Add version var to workflow
  • Loading branch information
sambles authored Feb 28, 2024
1 parent df17057 commit ad72597
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ on:
required: false
type: string

worker_api_ver:
description: 'Worker image run mode [v1, v2]'
required: false
type: string

env:
oasislmf_branch: 'main'
oasislmf_package: ''
Expand Down Expand Up @@ -137,3 +142,4 @@ jobs:
debug_mode: 1
pytest_opts: ${{ inputs.pytest_opts }}
storage_suffix: ${{ inputs.storage_suffix }}
worker_api_ver: ${{ inputs.worker_api_ver }}
2 changes: 1 addition & 1 deletion docker/Dockerfile.piwind_server
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM coreoasis/api_server:latest

USER root
RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -y install git python3-pip && rm -rf /var/lib/apt/lists/*

COPY --chown=server:server $ods_package ./
USER server
Expand Down
5 changes: 3 additions & 2 deletions docker/plat2-v2.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ x-server-env: &server-env
OASIS_CELERY_DB_USER: celery
OASIS_CELERY_DB_NAME: celery
OASIS_CELERY_DB_PORT: 5432
OASIS_INPUT_GENERATION_CONTROLLER_QUEUE: task-controller
OASIS_LOSSES_GENERATION_CONTROLLER_QUEUE: task-controller
OASIS_INPUT_GENERATION_CONTROLLER_QUEUE: task-controller # older setting (before 2.3.1)
OASIS_LOSSES_GENERATION_CONTROLLER_QUEUE: task-controller # older setting (before 2.3.1)
OASIS_TASK_CONTROLLER_QUEUE: task-controller # New option v2.3.1+

x-worker-env: &worker-env
OASIS_DEBUG: 1
Expand Down
5 changes: 3 additions & 2 deletions docker/plat2.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ x-shared-env: &shared-env
OASIS_CELERY_DB_USER: celery
OASIS_CELERY_DB_NAME: celery
OASIS_CELERY_DB_PORT: 5432
OASIS_INPUT_GENERATION_CONTROLLER_QUEUE: task-controller
OASIS_LOSSES_GENERATION_CONTROLLER_QUEUE: task-controller
OASIS_INPUT_GENERATION_CONTROLLER_QUEUE: task-controller # older setting (before 2.3.1)
OASIS_LOSSES_GENERATION_CONTROLLER_QUEUE: task-controller # older setting (before 2.3.1)
OASIS_TASK_CONTROLLER_QUEUE: task-controller # New option v2.3.1+
x-volumes: &shared-volumes
- filestore-OasisData:/shared-fs:rw
services:
Expand Down

0 comments on commit ad72597

Please sign in to comment.