esaude/iblis-contrib-docker

Name: iblis-contrib-docker

Owner: eSaude

Description: Docker containers for https://github.com/ilabafrica/iBLIS

Created: 2016-05-12 14:43:02.0

Updated: 2018-03-19 21:18:12.0

Pushed: 2016-05-17 15:32:29.0

Homepage: null

Size: 14

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

iLab Africa

iBLIS Docker

Docker containers for iBLIS

Build Status MariaDB Image Nginx Image

This repository contains the necessary infrastructure code and related resources required to compose and run Docker containers that start an instance of the iLab Africa iBLIS application.

Running
Prerequisites

Make sure you have Docker and Docker Compose installed.

Composition

To run containers use the prebuilt images, first get the compose file:

 https://raw.githubusercontent.com/esaude/iblis-contrib-docker/master/docker-compose-prebuilt.yml

Then pull the images:

er-compose -f docker-compose-prebuilt.yml pull

Once the pull is complete, you'll have to make sure that the mariadb container is initialized due to this limitation. Do this by running the following:

er-compose -f docker-compose-prebuilt.yml up iblis-mariadb

When it's done you can press ctrl+c to stop the container. You will only have to do this the first time.

After this you can run iBLIS by executing the following:

er-compose -f docker-compose-prebuilt.yml up
Access

To log into iBLIS, use the following details:

Building
Prerequisites

Make sure you have Docker and Docker Compose installed.

Setup

Start by cloning this repository:

clone https://github.com/esaude/iblis-contrib-docker

Enter the directory and build the images:

blis-contrib-docker
er-compose build

Once the build is complete, you'll have to make sure that the mariadb container is initialized due to this limitation. Do this by running the following:

er-compose up iblis-mariadb

When it's done you can press ctrl+c to stop the container. You will only have to do this the first time.

After this you can run iBLIS by executing the following:

er-compose up
Troubleshooting

[PDOException]
SQLSTATE[HY000] [2002] Connection refused

Since it's not currently possible to order the startup of Docker containers, sometimes the Nginx container will start before the MariaDB container. As a result, iBLIS might not get a database connection on start up. To work around this, stop the containers and restart them:

er-compose stop
er-compose start

Or if you are using the prebuilt images:

er-compose -f docker-compose-prebuilt.yml stop
er-compose -f docker-compose-prebuilt.yml start
License

MPL 2.0 w/ HD


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.