Skip to content

Commit 327f154

Browse files
committed
modified: singularity/build/converter.py
modified: singularity/version.py
1 parent dd48183 commit 327f154

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

singularity/build/converter.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,15 @@ def get_mapping():
208208
# Docker : Singularity
209209
add_command = {"section": "%post","fun": parse_add, "json": True }
210210
copy_command = {"section": "%post", "fun": parse_add, "json": True }
211-
cmd_command = {"section": "%runscript", "fun": parse_cmd, "json": True }
211+
cmd_command = {"section": "%post", "fun": parse_comment, "json": True }
212+
label_command = {"section": "%post", "fun": parse_comment, "json": True }
213+
port_command = {"section": "%post", "fun": parse_comment, "json": True }
212214
env_command = {"section": "%post", "fun": parse_env, "json": False }
213215
comment_command = {"section": "%post", "fun": parse_comment, "json": False }
214216
from_command = {"section": "From", "json": False }
215217
run_command = {"section": "%post", "json": True}
216218
workdir_command = {"section": "%post","fun": parse_workdir, "json": False }
217-
entry_command = {"section": "%post", "fun": parse_entry, "json": True }
219+
entry_command = {"section": "%runscript", "fun": parse_entry, "json": True }
218220

219221
return {"ADD": add_command,
220222
"COPY":copy_command,
@@ -225,7 +227,9 @@ def get_mapping():
225227
"RUN":run_command,
226228
"WORKDIR":workdir_command,
227229
"MAINTAINER":comment_command,
228-
"VOLUME":comment_command}
230+
"VOLUME":comment_command,
231+
"PORT":port_command,
232+
"LABEL":label_command}
229233

230234

231235

singularity/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.8"
1+
__version__ = "1.0.9"
22
AUTHOR = 'Vanessa Sochat'
33
AUTHOR_EMAIL = '[email protected]'
44
NAME = 'singularity'

0 commit comments

Comments
 (0)