Skip to content

Commit 1865766

Browse files
committed
update runners to 0.3.0 beta
1 parent eb7c7f7 commit 1865766

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dist/run_fcsadaptor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
SCRIPT_NAME=$0
4-
DEFAULT_VERSION="0.2.3"
4+
DEFAULT_VERSION="0.3.0"
55
DOCKER_IMAGE=ncbi/fcs-adaptor:${DEFAULT_VERSION}
66
SINGULARITY_IMAGE=""
77
CONTAINER_ENGINE="docker"

dist/run_fcsgx.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
CONTAINER = "run_gx"
1515
DEFAULT_CONTAINER_DB = "/app/db/gxdb"
16-
DEFAULT_VERSION = "0.2.3"
16+
DEFAULT_VERSION = "0.3.0"
1717
DEFAULT_DOCKER_IMAGE = f"ncbi/fcs-gx:{DEFAULT_VERSION}"
1818
DEFAULT_SINGULARITY_IMAGE = f"fcs-gx.{DEFAULT_VERSION}.sif"
1919
# FILE_MANIFEST = "sing-image.manifest"
@@ -116,6 +116,8 @@ def run_retrieve_db(self):
116116
str(self.args.container_db / gxdb_name),
117117
*extra_db_args,
118118
]
119+
if container_engine == "docker":
120+
retrieve_db_args.insert(2, "--rm")
119121
self.safe_exec(retrieve_db_args)
120122

121123
def run_gx(self):
@@ -159,6 +161,8 @@ def run_gx(self):
159161
"--split-fasta=" + ("T" if self.args.split_fasta else "F"),
160162
]
161163

164+
if container_engine == "docker":
165+
docker_args.insert(2, "--rm")
162166
if self.args.out_basename:
163167
docker_args.extend(["--out-basename", self.args.out_basename])
164168
if self.args.blast_div:
@@ -195,6 +199,9 @@ def run_verify_checksums(self):
195199
str(self.args.container_db / gxdb_name),
196200
"--debug",
197201
]
202+
if container_engine == "docker":
203+
docker_args.insert(2, "--rm")
204+
198205
self.safe_exec(docker_args)
199206

200207
def run(self):

0 commit comments

Comments
 (0)