-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinstall.sh
executable file
·28 lines (23 loc) · 1.16 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
./clone.sh
echo "Compiling OSCAR. This may take some time...."
# docker-compose run builder
echo "Setting up database containers. This may take some time...."
docker-compose up -d db
echo "Waiting for db containers initialize (1 min)"
docker-compose exec db ./code/populate-db.sh
echo "Bringing up tomcat"
docker-compose up -d tomcat_oscar
# echo "Waiting for containers to initialize (1 min)"
# sleep 60
# echo "Copying configuration files.."
# docker ps -a | awk '{ print $1,$2 }' | grep tomcat_oscar | awk '{print $1 }' | xargs -I {} docker exec -d {} chmod 755 /usr/local/tomcat/conf/copy.sh
# docker ps -a | awk '{ print $1,$2 }' | grep tomcat_oscar | awk '{print $1 }' | xargs -I {} docker exec -d {} /usr/local/tomcat/conf/copy.sh
# docker ps -a | awk '{ print $1,$2 }' | grep tomcat_oscar | awk '{print $1 }' | xargs -I {} docker restart {}
# echo "Restarting .."
# sleep 60
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 "Errors if any are more likely to be in the database import!"
echo "Thank You.."
echo "Visit our website for more info: http://nuchange.ca"