Skip to content

Commit

Permalink
Merge pull request #5 from datasci4health/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
matheusmota authored Apr 20, 2019
2 parents b2bdf10 + 8a80aa4 commit 0c41ff9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 30 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# harena-cloud
# harena-cloud

just:
```
git clone https://github.com/datasci4health/harena-cloud && cd harena-cloud && sudo sh ./setup.sh
```
40 changes: 20 additions & 20 deletions configs/apache2/000-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,54 @@
ProxyRequests On




#####################################################
###### /case-notebook/latest ######
###### /case-notebook/v1 ######
#####################################################

Redirect "/case-notebook/latest/web" "/case-notebook/latest/web/"
<Location "/case-notebook/latest/web/">
Redirect "/case-notebook/v1/web" "/case-notebook/v1/web/"
<Location "/case-notebook/v1/web/">
ProxyPreserveHost on
Options +Indexes +FollowSymLinks
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
ProxyPass http://localhost:8081/
ProxyPassReverse http://localhost:8081/
</Location>

Redirect "/case-notebook/latest/server" "/case-notebook/latest/server/"
<Location "/case-notebook/latest/server/">
Redirect "/case-notebook/v1/server" "/case-notebook/v1/server/"
<Location "/case-notebook/v1/server/">
ProxyPreserveHost on
Options +Indexes +FollowSymLinks
ProxyPass http://localhost:8880/
ProxyPassReverse http://localhost:8880/
ProxyPass http://localhost:8881/
ProxyPassReverse http://localhost:8881/
</Location>





#####################################################
###### /case-notebook/v1 ######
###### /case-notebook/latest ######
#####################################################

Redirect "/case-notebook/v1/web" "/case-notebook/v1/web/"
<Location "/case-notebook/v1/web/">
Redirect "/case-notebook/latest/web" "/case-notebook/latest/web/"
<Location "/case-notebook/latest/web/">
ProxyPreserveHost on
Options +Indexes +FollowSymLinks
ProxyPass http://localhost:8081/
ProxyPassReverse http://localhost:8081/
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
</Location>

Redirect "/case-notebook/v1/server" "/case-notebook/v1/server/"
<Location "/case-notebook/v1/server/">
Redirect "/case-notebook/latest/server" "/case-notebook/latest/server/"
<Location "/case-notebook/latest/server/">
ProxyPreserveHost on
Options +Indexes +FollowSymLinks
ProxyPass http://localhost:8881/
ProxyPassReverse http://localhost:8881/
ProxyPass http://localhost:8880/
ProxyPassReverse http://localhost:8880/
</Location>





#####################################################
###### /harena/logger/latest ######
#####################################################
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@
- 8081:80
- 8881:8888

case-notebook-latest:
image: datasci4health/case-notebook:latest

container_name: case-notebook-latest
restart: always
ports:
- 8080:80
- 8880:8888

watchtower:
image: v2tec/watchtower
volumes:
Expand Down
2 changes: 2 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sudo cp ./configs/apache2/000-default.conf /etc/apache2/sites-available/000-defa
sudo cp ./configs/apache2/index.html /var/www/index.html
sudo systemctl restart apache2

sudo docker-compose up -d

sudo rm repositories -r
mkdir repositories
cd repositories
Expand Down

0 comments on commit 0c41ff9

Please sign in to comment.