Getting started
info
The Instant OpenHIE architecture, codebase, and documentation are under active development and are subject to change. While we encourage adoption and extension of the Instant OpenHIE framework, we do not consider this ready for production use at this stage.
#
PrerequisitesInstant OpenHIE is, by design, easily downloaded and run by anyone on any platform. It works on Linux, macOS and Windows.
To get started, install Docker, Docker Compose and Kubectl for Kubernetes support. Instant OpenHIE uses Docker Compose to manage all the necessary services and applications. The links below will help guide the set up on your platform.
For Windows and macOS:
For Linux-based operating systems:
#
Configuring Docker for Desktop (Windows and macOS only)Once Docker Desktop has been installed you will need to configure a few things. To do this click the docker icon in the task bar and select 'Dashboard'. Next, open the setting using the gear icon. Then, configure the following:
- Under 'Resources' increase memory to 4.00 GB
- Under 'Kubernetes' select 'Enable Kubernetes'
- Click Apply & Restart - this may take some time
- Once the above is done enter setting again and select 'Filesharing'. Next, add the
C:\Users\<your_user>\.kube
folder and select 'Apply & Restart'
Now, you are ready to continue.
#
Use the Interactive App (recommended)Download the latest Instant OpenHIE executable from our GitHub releases page. Find the executable in the assets section of the latest release for your platform.
Move the Instant OpenHIE download somewhere memorable. Open up the terminal (or Powershell in Windows) and run the executable to get the command-line interface:
Use the arrow keys to navigate the interface and select "Use Docker on your PC" and thereafter choose between a default or custom installation.
More information on the default and custom installation options can be found here.
- Congratulations, you have successfully started up Instant OpenHIE. Follow the instructions on the web page to stop the services when you are done.
#
Advanced: Run the startup Scripts Directly (for automation and development)To start all the default Instant OpenHIE packages, select a deployment platform below.
Have a look at the existing packages on the sidebar to see what is currently available.
caution
If you update the openhie/instant docker image to a new version you will need to remove the instant
docker volume to see some of the updates as files are cached in this volume to allow sharing with other containers.
- Docker Compose
- Kubernetes
If you have the Instant OpenHIE codebase checked-out make sure you are in the main /instant
directory.
To start up the system, execute the following command:
To stop the running containers, execute the following:
Remove the containers with the command below. However, make sure you stop all the containers before trying to delete them.
This action will also delete all volumes created by the containers.
Each command also takes a list of package IDs to operate on. If this is left out then all packages are run by default.
If you do not have the code checked-out then you can still startup the environment with the correct command. You can find the docker commands to run in the scripts section of this file in the codebase. Add the action you would like to perform (init, up, down, destroy) to the end of that command.
For this to work you will need to have Kubernetes enabled in Docker for Desktop or minikube installed and running for Linux.
If you have the Instant OpenHIE codebase checked-out make sure you are in the main /instant
directory.
To start up the system, execute the following command:
To stop the running containers, execute the following:
Remove the containers with the command below. However, make sure you stop all the containers before trying to delete them.
This action will also delete all volumes created by the containers.
Each command also takes a list of package IDs to operate on. If this is left out then all packages are run by default.
If you do not have the code checked-out then you can still startup the environment with the correct command. You can find the docker commands to run in the scripts section of this file in the codebase. Add the action you would like to perform (init, up, down, destroy) to the end of that command and make sure to add the -t kubernetes
option after the action.