Skip to content

Commit

Permalink
OZ-196: Various fixes and adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuisson committed Dec 15, 2023
1 parent 8bde3a4 commit cc7e328
Show file tree
Hide file tree
Showing 10 changed files with 553 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tasks:
- name: Run Ozone FOSS
init: mvn clean package
init: scripts/mvnw clean package
command: source target/go-to-scripts-dir.sh && ./start-demo.sh
ports:
- name: OpenMRS
Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Ozone

> The entreprise-grade health information system that augments OpenMRS 3.
# Quick start

## (option 1) Try Ozone FOSS in Gitpod

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ozone-his/ozone-distro)
Expand All @@ -10,34 +16,27 @@ When ready Gitpod will launch the tab for OpenMRS 3.

```bash
git clone https://github.com/ozone-his/ozone-distro
mvn clean package
scripts/mvnw clean package
source target/go-to-scripts-dir.sh
./start-demo.sh
```



## (option 3) Try Ozone locally assuming Traefik is running on the host

```bash
git clone https://github.com/ozone-his/ozone-distro
mvn clean package
scripts/mvnw clean package
source target/go-to-scripts-dir.sh
export TRAEFIK="true"
./start-demo.sh
```

## Browse Ozone

Access each Ozone FOSS components at the following URL:

| HIS Component | URL | Username | Password |
|-------------------|--------------------------------|----------|----------|
| OpenMRS 3 | http://localhost/openmrs/spa | admin | Admin123 |
| OpenMRS Legacy UI | http://localhost/openmrs | admin | Admin123 |
| SENAITE | http://localhost:8081/senaite | admin | password |
| Odoo | http://localhost:8069 | admin | admin |
| Superset | http://localhost:8088 | admin | password |
Once complete, the startup script will output the URLs to access the services in the terminal.

For example:
![Access Ozone](./readme/browse.png)
Ozone FOSS requires you to log into each component separately.

💡 **Did you know?** Ozone Pro comes with single sign-on (SSO) and all its integration layer is secured with OAuth2.
7 changes: 0 additions & 7 deletions distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/binaries</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -213,7 +212,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/configs</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -233,7 +231,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/data</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -253,7 +250,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/binaries/eip-openmrs-senaite/routes</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -274,7 +270,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/binaries/eip-odoo-openmrs/routes</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -295,7 +290,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/binaries/openmrs/modules</outputDirectory>
<overwrite>true</overwrite>
Expand All @@ -315,7 +309,6 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<markersDirectory>${project.build.directory}/</markersDirectory>
<outputDirectory>
${project.build.directory}/openmrs_config</outputDirectory>
<overwrite>true</overwrite>
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@
<resources>
<resource>
<directory>${project.basedir}/scripts</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${project.basedir}/scripts</directory>
<includes>
<include>*.sh</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
Expand Down
Binary file added readme/browse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scripts/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
18 changes: 18 additions & 0 deletions scripts/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
Loading

0 comments on commit cc7e328

Please sign in to comment.