Skip to content

Commit 20663e6

Browse files
authored
add support to parse stopsignal (#204)
Signed-off-by: vsoch <[email protected]>
1 parent 2ad450a commit 20663e6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
1717
singularity on pypi), and the versions here will coincide with these releases.
1818

1919
## [master](https://github.com/singularityhub/singularity-cli/tree/master)
20+
- add comment out of STOPSIGNAL (0.2.14)
2021
- sudo `-E` flag should not be provided by default (0.2.13)
2122
- WORKDIR should create container for Singularity converter (0.2.12)
2223
- support for background process with client run (0.2.11)

spython/main/parse/parsers/docker.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ def _expose(self, line):
414414
self.recipe[self.active_layer].ports += ports
415415
return self._comment("# %s" % line)
416416

417+
def _stopsignal(self, line):
418+
"""Again, just add to metadata, and comment in install.
419+
420+
Parameters
421+
==========
422+
line: the line from the recipe file to parse STOPSIGNAL
423+
"""
424+
return self._comment("# %s" % line)
425+
417426
# Working Directory
418427

419428
def _workdir(self, line):
@@ -528,6 +537,7 @@ def _get_mapping(self, line, parser=None, previous=None):
528537
"MAINTAINER": self._label,
529538
"VOLUME": self._volume,
530539
"LABEL": self._label,
540+
"STOPSIGNAL": self._stopsignal,
531541
}
532542

533543
# If it's a command line, return correct function

spython/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
66

77

8-
__version__ = "0.2.13"
8+
__version__ = "0.2.14"
99
AUTHOR = "Vanessa Sochat"
1010
AUTHOR_EMAIL = "[email protected]"
1111
NAME = "spython"

0 commit comments

Comments
 (0)