You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-wrappers/OmicsIntegrator2/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ The Docker wrapper can be tested with `pytest`.
25
25
## Versions:
26
26
- v1: Created a named conda environment in the container and used `ENTRYPOINT` to execute commands inside that environment. Not compatible with Singularity.
27
27
- v2: Used the environment file to update the base conda environment so the `ENTRYPOINT` command was no longer needed. Compatible with Singularity.
28
+
- v3: Patch to work offline by never running `output_networkx_graph_as_interactive_html` ([#226](https://github.com/Reed-CompBio/spras/pull/226))
Runs a command in the container using Singularity or Docker
138
138
@param framework: singularity or docker
139
139
@param container_suffix: name of the DockerHub container without the 'docker://' prefix
140
140
@param command: command to run in the container
141
141
@param volumes: a list of volumes to mount where each item is a (source, destination) tuple
142
142
@param working_dir: the working directory in the container
143
-
@param environment: environment variables to set in the container
144
143
@param out_dir: output directory for the rule's artifacts. Only passed into run_container_singularity for the purpose of profiling.
144
+
@param environment: environment variables to set in the container
145
+
@param network_disabled: Disables the network on the container. Only works for docker for now. This acts as a 'runtime assertion' that a container works w/o networking.
145
146
@return: output from Singularity execute or Docker run
@param volumes: a list of volumes to mount where each item is a (source, destination) tuple
167
168
@param working_dir: the working directory in the container
168
169
@param environment: environment variables to set in the container
170
+
@param network_disabled: Disables the network on the container. Only works for docker for now. This acts as a 'runtime assertion' that a container works w/o networking.
169
171
@return: output from Singularity execute or Docker run
170
172
"""
171
173
ifnotenvironment:
172
174
environment= {'SPRAS': 'True'}
173
175
174
176
print('Running {} on container framework "{}" on env {} with command: {}'.format(name, framework, list(env_to_items(environment)), ' '.join(command)), flush=True)
0 commit comments