HAPI_FHIR_SERVER

by mirror1
13 deployments · 1 still active · last rev. 6 months ago

Compatible with: Ubuntu 16.04 LTS
						#!/bin/bash

sudo apt-get install unzip

wget -P /tmp https://codeload.github.com/kakakawai/FHIR/zip/master

unzip /tmp/master -d /tmp

apt-get install openjdk-8-jdk -y
apt-get install maven -y
apt-get install docker.io -y

sudo docker run --name FHIR-postgreSQL -p 5432:5432 -d postgres

sleep 5s

sudo docker exec -it FHIR-postgreSQL psql -U postgres --command "create user hapi with password 'p@ssw0rd';"

sudo docker exec -it FHIR-postgreSQL psql -U postgres --command "create database hapi owner hapi;"

sudo docker exec -it FHIR-postgreSQL psql -U postgres --command "grant all privileges on database hapi to hapi;"

cd /tmp/FHIR-master/hapi-fhir-jpaserver-example-postgres

mvn package 

docker build -t hapi-fhir/hapi-fhir-jpaserver-example-postgres .

sudo docker run --link FHIR-postgreSQL:postgres -d -p 8080:8080 hapi-fhir/hapi-fhir-jpaserver-example-postgres