Skip to content

Commit 2cc0c4c

Browse files
committed
fix(controller): do not set entrypoint when no procfile
1 parent ffd08c6 commit 2cc0c4c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rootfs/api/models/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,11 @@ def _get_entrypoint(self, container_type):
153153
"""
154154
Return the kubernetes "container command" to be sent off to the scheduler.
155155
"""
156-
entrypoint = ['/bin/sh', '-c']
156+
entrypoint = []
157157
release = self.release_set.filter(failed=False).latest()
158+
if release is not None and release.build is not None:
159+
if release.build.procfile and container_type in release.build.procfile:
160+
entrypoint = ['/bin/sh', '-c']
158161
if self._get_stack(release) == "buildpack":
159162
if container_type in release.build.procfile:
160163
entrypoint = [container_type]

0 commit comments

Comments
 (0)