-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dockerize #97
Merged
Merged
Dockerize #97
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5da2fd5
installation of python and required libs works fine
northwestwitch 626770a
Dockerize the app
northwestwitch 5035cf7
fixed dockerignore
northwestwitch 57aff94
modify primary Dockerfile to run commands as non-root user
northwestwitch 02d72b1
included test for when app is created from inside a container
northwestwitch df918cc
fixed a comment string
northwestwitch 515b28f
updated instructions on how to setup the docker demo
northwestwitch b85604d
written documentation on how to create running docker containers with…
northwestwitch 86dcdfb
fixed documentation a bit
northwestwitch 3789531
fix typo and release date
northwestwitch a05c959
Merge branch 'master' into dockerfile
northwestwitch ba3f96b
a few improvements
northwestwitch 89dc6b1
fix according to codefactor suggestion
northwestwitch 35cf215
deleted unused stuff
northwestwitch d9b68aa
include instructions on how to add demo data using the docker interac…
northwestwitch d2322b2
moved Dockerfile to app root folder and added installation of bedtools
northwestwitch File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.git | ||
.github | ||
.gitignore | ||
.travis.yml | ||
mkdocs.yml | ||
docs | ||
tests | ||
Dockerfile | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.2" | ||
__version__ = "1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.8-alpine3.12 | ||
|
||
MAINTAINER Chiara Rasi | ||
|
||
RUN apk update | ||
RUN apk add make automake gcc g++ linux-headers curl libcurl curl-dev \ | ||
zlib-dev bzip2-dev xz-dev libffi-dev curl libressl-dev bash \ | ||
&& rm -rf /var/cache/apk/*s | ||
|
||
WORKDIR /home/worker/app | ||
COPY . /home/worker/app | ||
|
||
RUN pip install -r requirements.txt | ||
RUN pip install -e . | ||
|
||
RUN adduser -D worker | ||
RUN chown worker:worker -R /home/worker | ||
USER worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM northwestwitch/cgbeacon2:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm hosting the image on my docker hub now because I don't have access to the clinicalgenomics one, but I plan to move the images there |
||
|
||
MAINTAINER Chiara Rasi | ||
|
||
EXPOSE 5000 | ||
|
||
CMD cgbeacon2 run --host 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
northwestwitch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# usage: | ||
# sudo docker-compose build | ||
# sudo docker-compose up | ||
services: | ||
mongodb: | ||
image: mvertes/alpine-mongo | ||
container_name: mongodb | ||
ports: | ||
- '27017:27017' | ||
expose: | ||
- '27017' | ||
|
||
beacon-cli: | ||
environment: | ||
MONGODB_HOST: mongodb | ||
image: northwestwitch/cgbeacon2 | ||
container_name: beacon-cli | ||
links: | ||
- mongodb | ||
command: bash -c 'cgbeacon2 add demo' | ||
|
||
beacon-web: | ||
environment: | ||
MONGODB_HOST: mongodb | ||
image: northwestwitch/cgbeacon2 | ||
container_name: beacon-web | ||
links: | ||
- mongodb | ||
expose: | ||
- '5000' | ||
ports: | ||
- '5000:5000' | ||
command: bash -c 'cgbeacon2 run --host 0.0.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You could also add some more labels here to describe the container. Have a look at @jemten and @henrikstranneheim examples in MIP for inspiration
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'll check, thanks!