Skip to content

Commit

Permalink
Update/platform v2 (#44)
Browse files Browse the repository at this point in the history
* Update compose for version 2.3.0

* Fix port clash

* Fix model mount

* Set UI version to v2

* Fix images and update swagger links

* Fix GH?

* foo

* Fix workflow later
  • Loading branch information
sambles authored Feb 7, 2024
1 parent dc2ea7a commit 13052ef
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 124 deletions.
64 changes: 33 additions & 31 deletions .github/workflows/install-test.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
name: Evaluation Installation Test

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
install_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: run installation
run: ./install.sh

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install test deps
run: |
python -m pip install --upgrade pip
pip install -r OasisPiWind/tests/requirements.in
- name: run PiWind test
run: pytest OasisPiWind/tests/test_piwind_integration.py -v --use-running-containers --docker-compose=oasis-platform.yml -k all_outputs
#on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
# workflow_dispatch:
#
#jobs:
# install_test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
#
# - name: run installation
# run: ./install.sh
#
# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
#
# - name: install test deps
# run: |
# python -m pip install --upgrade pip
# pip install -r OasisPiWind/tests/requirements.in
#
# - name: run PiWind test
# run: pytest OasisPiWind/tests/test_piwind_integration.py -v --use-running-containers --docker-compose=oasis-platform.yml -k all_outputs
# env:
# WORKER_API_VER: 'v1'
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The platform can be run via docker containers on a single machine or, if require

Docker support is the main requirement for running the platform.
A Linux based installation is the main focus of this example deployment.
Running the install script from this repository automates install process of the OasisPlatform API v1, User Interface and example PiWind model.
Running the install script from this repository automates install process of the OasisPlatform API v2, User Interface and example PiWind model.

## Install Prerequisites
* Host operating system with docker support, see [Docker compatibility matrix](https://success.docker.com/article/compatibility-matrix).
Expand Down Expand Up @@ -43,7 +43,7 @@ sudo ./install.sh
#### Oasis Docker Components

![Oasis docker images](https://github.com/OasisLMF/OasisEvaluation/raw/master/.img/oasis_containers.png)
![Oasis docker images](https://github.com/OasisLMF/OasisEvaluation/raw/main/.img/oasis_containers.png)

|Component |Description |Technology |
| ---------------------:| ------------------:| ----------:|
Expand All @@ -66,27 +66,33 @@ Pass: password
```

### [OasisUI Interface](http://localhost:8080/) - *localhost:8080/*
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/master/.img/oasisui.png)
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/main/.img/oasisui.png)


### [API Swagger UI - All](http://localhost:8000/) - *localhost:8000*
### [API Swagger UI - V1](http://localhost:8000/v1/) - *localhost:8000/v1/*
### [API Swagger UI - V2](http://localhost:8000/v2/) - *localhost:8000/v2/*
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/main/.img/api_swagger.png)



### [API Swagger UI](http://localhost:8000/) - *localhost:8000*
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/master/.img/api_swagger.png)

### [API Admin Panel](http://localhost:8000/admin) - *localhost:8000/admin*
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/master/.img/admin_panel.png)
![alt text](https://github.com/OasisLMF/OasisEvaluation/raw/main/.img/admin_panel.png)

### [Portainer Docker Panel](http://localhost:9000) - *localhost:9000*
![alt text](https://github.com/OasisLMF/OasisAtScaleEvaluation/raw/master/.img/portainer.png)
![alt text](https://github.com/OasisLMF/OasisAtScaleEvaluation/raw/main/.img/portainer.png)

## Exposure inputs

The Oasis platform supports the [Open Exposure Data (OED)](https://github.com/Simplitium/OED) standard for importing exposure.
Example files are available for the PiWind model:

* [SourceLocOEDPiWind10.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/master/tests/inputs/SourceLocOEDPiWind10.csv) --- Locations Data 10 rows
* [SourceLocOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/master/tests/inputs/SourceLocOEDPiWind.csv) --- Locations Data
* [SourceAccOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/master/tests/inputs/SourceAccOEDPiWind.csv) --- Accounts Data
* [SourceReinsInfoOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/master/tests/inputs/SourceReinsInfoOEDPiWind.csv) --- Reinsurance Info
* [SourceReinsScopeOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/master/tests/inputs/SourceReinsScopeOEDPiWind.csv) --- Reinsurance Scope
* [SourceLocOEDPiWind10.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/main/tests/inputs/SourceLocOEDPiWind10.csv) --- Locations Data 10 rows
* [SourceLocOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/main/tests/inputs/SourceLocOEDPiWind.csv) --- Locations Data
* [SourceAccOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/main/tests/inputs/SourceAccOEDPiWind.csv) --- Accounts Data
* [SourceReinsInfoOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/main/tests/inputs/SourceReinsInfoOEDPiWind.csv) --- Reinsurance Info
* [SourceReinsScopeOEDPiWind.csv](https://raw.githubusercontent.com/OasisLMF/OasisPiWind/main/tests/inputs/SourceReinsScopeOEDPiWind.csv) --- Reinsurance Scope

## Troubleshooting
Feedback and error reports are invaluable for improving the stability and performance of the Oasis Platform, If you encounter an issue please consider [submitting an issue here](https://github.com/OasisLMF/OasisPlatform/issues)
Expand Down Expand Up @@ -169,6 +175,6 @@ This evaluation also includes a Jupyter notebook that accesses the API using the

The following sequence diagram illustrates how the general steps in the analysis, encapulated by the API client functions, map to specific API calls.

![Oasis API sequence](https://github.com/OasisLMF/OasisEvaluation/raw/master/.img/oasis_api_sequence.png)
![Oasis API sequence](https://github.com/OasisLMF/OasisEvaluation/raw/main/.img/oasis_api_sequence.png)


8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

export VERS_MDK=1.28.4
export VERS_API=1.28.4
export VERS_WORKER=1.28.4
export VERS_MDK=2.3.0
export VERS_API=2.3.0
export VERS_WORKER=2.3.0
export VERS_UI=1.11.7
export VERS_PIWIND='stable/1.28.x'
export VERS_PIWIND='stable/2.3.x'

export SERVER_IMG=coreoasis/api_server
export WORKER_IMG=coreoasis/model_worker
Expand Down
Loading

0 comments on commit 13052ef

Please sign in to comment.