forked from dermatologist/oscar-latest-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
21 lines (21 loc) · 976 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
echo "Cloning oscar from bitbucket"
git clone --depth 1 https://bitbucket.org/oscaremr/oscar.git
echo "Disabling Caisi"
cp code/CaisiIntegratorUpdateTask.java oscar/src/main/java/org/oscarehr/PMmodule/caisi_integrator/
#cp code/Security.java oscar/src/main/java/org/oscarehr/common/model/
cd oscar
echo "Compiling OSCAR. This may take some time...."
mvn package -Dmaven.test.skip=true
cd ..
echo "Setting up docker containers. This may take some time...."
docker-compose up -d
echo "Waiting for containers to initialize (1 min)"
sleep 60
echo "Copying configuration files.."
docker exec -d oscarlatestdocker_tomcat_oscar_1 chmod 755 /usr/local/tomcat/conf/copy.sh
docker exec -d oscarlatestdocker_tomcat_oscar_1 /usr/local/tomcat/conf/copy.sh
echo "OSCAR is set up at http://localhost:8091/oscar_mcmaster"
echo "You may have to restart the container http://localhost:8091/ (oscar/oscar)"
echo "Thank You.."
echo "Visit our website for more info: http://nuchange.ca"