-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up docker for genenetwork #29
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some stuff needs to be changed before it can be merged (see comments). Others I have to check myself before I can approve a merge.
@@ -3,11 +3,11 @@ var level = require('level') | |||
var elasticsearch = require('elasticsearch') | |||
|
|||
var client = new elasticsearch.Client({ | |||
host: 'localhost:9200', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this *might break current GN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I change it back? Without this change docker won't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will test this locally and get back to you
@@ -2,7 +2,7 @@ var elasticsearch = require('elasticsearch') | |||
var async = require('async') | |||
|
|||
var CLIENT = new elasticsearch.Client({ | |||
host: 'localhost:9200', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this *might break current GN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I change it back? Without this change docker won't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will test this locally and get back to you
@@ -3,7 +3,12 @@ var dbutil = require('../utils/dbutil') | |||
var genedesc = require('../utils/genedesc') | |||
var quicksortobj = require('../utils/quicksortobj') | |||
|
|||
var Queue = kue.createQueue() // this does not create a new queue, it's just redis access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to test if this would break anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I change it back? Without this change docker won't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks running locally, will investigate how to make it work in both instances
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to do some testing and get back to you
COPY . . | ||
|
||
# Make port 80 available to the world outside this container | ||
EXPOSE 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use expose in the dockerfile only specify it in the docker-compose file
web: | ||
# replace username/repo:tag with your name and image details | ||
image: metabrainnetwork | ||
build: ./ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this, use only the image tag
build: ./ | ||
ports: | ||
- "1337:1337" | ||
- "4000:85" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove - "4000:85", only expose 1337
- ELASTICSEARCH_HOST=elasticsearch | ||
redis: | ||
image: redis | ||
ports: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use expose instead of the port binding. The expose variant will only make the port available within the docker-compose stack itself.
- "6379:6379" | ||
elasticsearch: | ||
image: elasticsearch:2.4 | ||
ports: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use expose instead of the port binding. The expose variant will only make the port available within the docker-compose stack itself.
- "/data:/data" | ||
pwasserver: | ||
image: pwasserver | ||
build: ./docker/pwasServer/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use image tags
COPY . . | ||
|
||
# Make port 80 available to the world outside this container | ||
EXPOSE 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove EXPOSE 80 from dockerfile, only specify ports in docker-compose with expose
- 9300:9300 | ||
predictionserver: | ||
image: predictionserver | ||
build: ./docker/predictionServer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use image tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe create another repository for the metabrain app? Check comments on code lines as well.
No description provided.