You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ajustement 5_base/data
* OP-975 Added additional filters to uspAPIGetClaims (#157)
* OP-1066: modular IMIS: time correlations don't work (#158)
* SubmitSingleClaim SP is now includes historical timestamp for ProductItems/ProductServices
* SubmitSingleClaim SP is now taking historical data for items/services
* Historical Price lists are taken care while processing claims
* OTC-780: update business logic (#160)
* OTC-780: update business logic: items/serives left is now being calculate as a sum of quantity in all valid claims assigned to insuree
* OTC-780: refactor the code
* Update openmis-module-test.yml
* Devision by 0 while calculating Allocated amount (#159)
* change encoding to UTF-8
* UTF-8 + LF
* Merge docker and fix SQL
* remove run that never stops
* to unblock CI on other repo
* fix end date for batch process
the old code does a process date between start and stop date BUT processdate is a DateTime so any datetime after 0.00 on the last day was NOT taken into account
* Capitation : Wrong formula to calculate allocation is fixed
* Change type of env INIT_MODE from 'empty' to empty
* Update Dockerfile
* Update Dockerfile
* Fixed the INIT_MODE variable
* utf-8
* Update docker.yml
---------
Co-authored-by: mngoe <maxime.ngoe@gmail.com>
Co-authored-by: Kamil Malinowski <kmalinowski@soldevelo.com>
Co-authored-by: Hiren Soni <65155846+hirensoni913@users.noreply.github.com>
Co-authored-by: Jan <jdolkowski@soldevelo.com>
Co-authored-by: Patrick Delcroix <patrick.delcroix@swisstph.ch>
Co-authored-by: Patrick Delcroix <delcroip@gmail.com>
Co-authored-by: Hiren Soni <hirensoni913@gmail.com>
Co-authored-by: Damian Borowiecki <dborowiecki@soldevelo.com>
Copy file name to clipboardExpand all lines: README.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,68 @@ For deployment please read the [installation manual](http://openimis.readthedocs
41
41
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.
42
42
-->
43
43
44
+
## openIMIS dockerized database
45
+
46
+
47
+
48
+
|:bomb: Disclaimer : NOT FOR PRODUCTION USE :bomb:|
49
+
| --- |
50
+
| This repository provides a dockerized openIMIS database. It provides a quick setup for development, testing or demoing. ***It is NOT INTENDED FOR PRODUCTION USE.***|
51
+
52
+
53
+
### ENV
54
+
55
+
- INIT_MODE if set to demo will init the database to demo (works only if not yet init)
56
+
- SQL_SCRIPT_URL url to init scripts
57
+
-**ACCEPT_EULA** must be set to Y to accept MS SQL EULA
58
+
- SA_PASSWORD default: IMISuserP@s
59
+
- DB_USER_PASSWORD defautl: IMISuserP@s
60
+
- DB_NAMEdefautl: IMIS
61
+
- DB_USER defautl: IMISUser
62
+
63
+
64
+
### gettingstarted
65
+
66
+
Please look for the directions on the openIMIS Wiki: https://openimis.atlassian.net/wiki/spaces/OP/pages/963182705/MO1.1+Install+the+modular+openIMIS+using+Docker
67
+
68
+
Using the provided docker file, you can build a docker image running a SQL Server 2017, with a restored openIMIS backup database.
69
+
This is done by giving the following ARGs to the docker build command:
70
+
```
71
+
docker build \
72
+
--build-arg ACCEPT_EULA=Y \
73
+
--build-arg SA_PASSWORD=<your secret password> \
74
+
. \
75
+
-t openimis-db
76
+
```
77
+
78
+
optinnaly
79
+
```
80
+
--build-arg SQL_SCRIPT_URL=<url to the sql script to create the database> \
81
+
--build-arg DB_USER_PASSWORD=StrongPassword
82
+
--build-arg DB_USER=IMISUser
83
+
--build-arg DB_NAME=IMIS
84
+
```
85
+
***Notes***:
86
+
* by setting the ACCEPT_EULA=Y, you explicitely accept [Microsoft EULA](https://go.microsoft.com/fwlink/?linkid=857698) for the dockerized SQL Server 2017. Please ensure you read it and use the provided software according to the terms of that license.
87
+
* choose a strong password (at least 8 chars,...)... or SQL Server will complain
88
+
89
+
90
+
To start the image in a docker container: `docker run -p 1433:1433 openimis-db`
91
+
To restore the backup inside the container:
92
+
* To spot the ID of the container: `docker container ls` (spot the row with openimis-db IMAGE name)
93
+
94
+
95
+
***Note:***
96
+
the container will check if the database exist, if it doesnot it will take the latest demo release version and deploy it , SQL_SCRIPT_URL is per defautl set to "https://github.com/openimis/database_ms_sqlserver/releases/latest/download/sql-files.zip"
97
+
to have data retention when container are recreated volums need to be configured as microsoft docs suggest
The database is writen within the container. If you want to keep your data between container execution, stop/start the container via `docker stop <CONTAINER ID>` / `docker start <CONTAINER ID>` (using `docker run ... ` recreates a new container from the image... thus without any data)
103
+
104
+
105
+
44
106
## Versioning
45
107
46
108
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/openimis/web_app_vb/tags).
0 commit comments