Skip to content

Commit

Permalink
Initial Distros Configs
Browse files Browse the repository at this point in the history
  • Loading branch information
larslemos committed Jul 18, 2023
1 parent 8cc0195 commit f40271b
Show file tree
Hide file tree
Showing 136 changed files with 227 additions and 66,601 deletions.
36 changes: 8 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ https://dev3.openmrs.org and https://o3.openmrs.org.

## Quick start

### Package the distribution and prepare the run
### Update the distribution and prepare the run

```
docker compose build
docker compose -f docker-compose-ohri-[dev | namibia | working ].yml pull
```

### Run the app
### Run the Selected Distro

```
docker compose up
docker compose -f docker-compose-ohri-[dev | namibia | working ].yml up
```

New OpenMRS UI is accessible at http://localhost/openmrs/spa
Expand All @@ -25,35 +25,15 @@ OpenMRS Legacy UI is accessible at http://localhost/openmrs

This distribution consists of four images:

* db - This is just the standard MariaDB image supplied to use as a database
* backend - This image is the OpenMRS backend. It is built from the main Dockerfile included in the root of the project and
- db - This is just the standard MariaDB image supplied to use as a database
- backend - This image is the OpenMRS backend. It is built from the main Dockerfile included in the root of the project and
based on the core OpenMRS Docker file. Additional contents for this image are drawn from the `distro` sub-directory which
includes a full Initializer configuration for the reference application intended as a starting point.
* frontend - This image is a simple nginx container that embeds the 3.x frontend, including the modules described in the
- frontend - This image is a simple nginx container that embeds the 3.x frontend, including the modules described in the
`frontend/spa-build-config.json` file.
* proxy - This image is an even simpler nginx reverse proxy that sits in front of the `backend` and `frontend` containers
- proxy - This image is an even simpler nginx reverse proxy that sits in front of the `backend` and `frontend` containers
and provides a common interface to both. Basically, this help mitigate CORS issues.

## Contributing to the configuration

This project uses the [Initializer](https://github.com/mekomsolutions/openmrs-module-initializer) module
to configure metadata for this project. The Initializer configuration can be found in the configuration
subfolder of the distro folder. Any files added to this will be automatically included as part of the
metadata for the RefApp.

Eventually, we would like to split out this metadata into two packages:

* `openmrs-core`, which will contain all the metadata necessary to run OpenMRS
* `openmrs-demo`, which will include all of the sample data we use to run the RefApp

The `openmrs-core` package will eventually be a standard part of the distribution, with the `openmrs-demo`
provided as an optional addon. Most data in this configuration _should_ be regarded as demo data. We
anticipate that data in the `openmrs-demo` package will be replaced by implementation-specific metadata,
though they may use that metadata as a starting point for that customisation.

To help us to keep track of things, we ask that you suffix any files you add with either
`-core_demo` for files that should be part of the demo package and `-core_data` for
those which should be part of the core package. For example, a form named `test_form.json` would become
`test_core-core_demo.json`.

Thanks!
3 changes: 0 additions & 3 deletions config/importmap_dev.json

This file was deleted.

39 changes: 0 additions & 39 deletions distro/README.md

This file was deleted.

46 changes: 0 additions & 46 deletions distro/configuration/addresshierarchy/addressConfiguration.xml

This file was deleted.

Loading

0 comments on commit f40271b

Please sign in to comment.