diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f6d16..63219e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to singularity on pypi), and the versions here will coincide with these releases. ## [master](https://github.com/singularityhub/singularity-cli/tree/master) + - add comment out of STOPSIGNAL (0.2.14) - sudo `-E` flag should not be provided by default (0.2.13) - WORKDIR should create container for Singularity converter (0.2.12) - support for background process with client run (0.2.11) diff --git a/spython/main/parse/parsers/docker.py b/spython/main/parse/parsers/docker.py index 51e9335..cb50a7a 100644 --- a/spython/main/parse/parsers/docker.py +++ b/spython/main/parse/parsers/docker.py @@ -414,6 +414,15 @@ def _expose(self, line): self.recipe[self.active_layer].ports += ports return self._comment("# %s" % line) + def _stopsignal(self, line): + """Again, just add to metadata, and comment in install. + + Parameters + ========== + line: the line from the recipe file to parse STOPSIGNAL + """ + return self._comment("# %s" % line) + # Working Directory def _workdir(self, line): @@ -528,6 +537,7 @@ def _get_mapping(self, line, parser=None, previous=None): "MAINTAINER": self._label, "VOLUME": self._volume, "LABEL": self._label, + "STOPSIGNAL": self._stopsignal, } # If it's a command line, return correct function diff --git a/spython/version.py b/spython/version.py index 25b8093..96f676c 100644 --- a/spython/version.py +++ b/spython/version.py @@ -5,7 +5,7 @@ # with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -__version__ = "0.2.13" +__version__ = "0.2.14" AUTHOR = "Vanessa Sochat" AUTHOR_EMAIL = "vsoch@users.noreply.github.com" NAME = "spython"