Skip to content

Commit

Permalink
Merge pull request cBioPortal#10 from cBioPortal/port
Browse files Browse the repository at this point in the history
Expose database to host machine so it can be easily inspected
  • Loading branch information
adamabeshouse authored Mar 15, 2021
2 parents 7a020ae + 4c72516 commit be2acc3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
data/*
study/*
config/portal.properties
!*.sh
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ database needs to import some data.
```
docker-compose up
```
If you are developing and want to expose the database for inspection through a program like Sequel Pro, run:
```
docker-compose -f docker-compose.yml -f open-db-ports.yml up
```
In a different terminal import a study
```
docker-compose run --rm cbioportal metaImport.py -u http://cbioportal:8080 -s study/lgg_ucsf_2014/ -o
Expand Down
4 changes: 4 additions & 0 deletions open-db-ports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
cbioportal-database:
ports:
- "3306:3306"

0 comments on commit be2acc3

Please sign in to comment.