Skip to content
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

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Set up docker for genenetwork #29

wants to merge 30 commits into from

Conversation

npklein
Copy link
Contributor

@npklein npklein commented Jul 29, 2019

No description provided.

@npklein npklein changed the title Docker Set up docker for genenetwork Jul 29, 2019
Copy link

@Neleor Neleor left a 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.

config/domain.js Outdated Show resolved Hide resolved
config/local.js Outdated Show resolved Hide resolved
views/homepage.ejs Outdated Show resolved Hide resolved
data_scripts/parseTermsToElastic.js Outdated Show resolved Hide resolved
data_scripts/parseGenesToElastic.js Outdated Show resolved Hide resolved
@@ -3,11 +3,11 @@ var level = require('level')
var elasticsearch = require('elasticsearch')

var client = new elasticsearch.Client({
host: 'localhost:9200',
Copy link

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

Copy link
Contributor Author

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

Copy link
Collaborator

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',
Copy link

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

Copy link
Contributor Author

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

Copy link
Collaborator

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
Copy link

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

Copy link
Contributor Author

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

Copy link
Collaborator

@royoelen royoelen Jul 30, 2019

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

Copy link
Collaborator

@royoelen royoelen left a 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
Copy link
Collaborator

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: ./
Copy link
Collaborator

@sidohaakma sidohaakma Oct 1, 2019

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"
Copy link
Collaborator

@sidohaakma sidohaakma Oct 1, 2019

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:
Copy link
Collaborator

@sidohaakma sidohaakma Oct 1, 2019

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:
Copy link
Collaborator

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/
Copy link
Collaborator

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
Copy link
Collaborator

@sidohaakma sidohaakma Oct 1, 2019

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use image tags

Copy link
Collaborator

@sidohaakma sidohaakma left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants