Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2baf2e5

Browse files
committed
Adding Dockerfile for module specific Docker image
1 parent 5bd4a8f commit 2baf2e5

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### copyright 2017-2021 Regents of the University of California and the Broad Institute. All rights reserved.
2+
FROM genepattern/docker-python36:0.4
3+
4+
MAINTAINER Barbara Hill <[email protected]>
5+
6+
# While you are debugging/iterating over your module code in the Module integrator comment out the secion below.
7+
# When you are done, export your module, unzip and move your source files into the src directory in this local workspace.
8+
# Then, update this section for you module and build using the docker build command below - again updated for your module.
9+
# -----------------------------------
10+
RUN mkdir /ExampleModule \
11+
&& chown gpuser /ExampleModule
12+
13+
USER gpuser
14+
COPY src/*.py /ExampleModule/
15+
16+
RUN /ExampleModule/ExampleModule.py
17+
# -----------------------------------
18+
19+
# docker build --rm https://github.com/genepattern/ExampleModule#develop -f Dockerfile -t genepattern/example-module:2
20+
# make sure this repo and tag match the manifest & don't forget to docker push!
21+
22+
# you can use this command to run Docker and iterate locally (update for your paths and module name, of course)
23+
# docker run --rm -it --user gpuser -v /c/Users/MyUSER/PathTo/ExampleModule:/mnt/mydata:rw genepattern/example-module:<tag> bash

manifest

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ JVMLevel=
44
LSID=urn\:lsid\:broad.mit.edu\:cancer.software.genepattern.module.analysis\:00374\:2.0
55
author=Edwin F. Juarez;UCSD - Mesirov Lab
66
categories=administration
7-
commandLine=<python_3.6> <libdir>ExampleModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
8-
job.docker.image=genepattern/docker-python36:0.4
7+
#commandLine when run with source in Docker container:
8+
commandLine=/ExampleModule/ExampleModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
9+
#commandLine when run with source in module zip/taskLib:
10+
#commandLine=<python_3.6> <libdir>ExampleModule.py -f <filename> -a <add_custom_message> -m <message_to_add> -o <output_filename>
11+
job.docker.image=genepattern/example-module:2
912
cpuType=any
1013
description=This is an example GenePattern module written in Python 3. It can be used as a template for future modules. It reads a file and potentially adds a line of text
1114
fileFormat=txt

0 commit comments

Comments
 (0)