Skip to content

Commit 211361b

Browse files
author
Matthew Fisher
committed
Merge pull request #2664 from bacongobbler/revert-to-bash
revert to /bin/bash for run commands
2 parents e592528 + ebded17 commit 211361b

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

controller/api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def run(self, command):
476476
'to run this command')
477477
image = self.release.image
478478
job_id = self._job_id
479-
entrypoint = '/bin/sh'
479+
entrypoint = '/bin/bash'
480480
# if this is a procfile-based app, switch the entrypoint to slugrunner's default
481481
# FIXME: remove slugrunner's hardcoded entrypoint
482482
if self.release.build.procfile and \

controller/api/tests/test_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ def test_run_command_good(self):
499499
num=1)
500500
rc, output = c.run('echo hi')
501501
self.assertEqual(rc, 0)
502-
self.assertEqual(json.loads(output)['entrypoint'], '/bin/sh')
502+
self.assertEqual(json.loads(output)['entrypoint'], '/bin/bash')
503503
# docker image workflow
504504
build.dockerfile = None
505505
build.sha = None
506506
rc, output = c.run('echo hi')
507-
self.assertEqual(json.loads(output)['entrypoint'], '/bin/sh')
507+
self.assertEqual(json.loads(output)['entrypoint'], '/bin/bash')
508508
# procfile workflow
509509
build.sha = 'somereallylongsha'
510510
rc, output = c.run('echo hi')

docs/contributing/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test-integration.sh
9696
>>> Preparing test environment <<<
9797
9898
DEIS_ROOT=/Users/matt/Projects/src/github.com/deis/deis
99-
DEIS_TEST_APP=example-dockerfile-http
99+
DEIS_TEST_APP=example-go
100100
...
101101
>>> Running integration suite <<<
102102

tests/bin/test-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ echo "DEIS_ROOT=$DEIS_ROOT"
1818
export PATH=${GOPATH}/bin:$PATH
1919

2020
# the application under test
21-
export DEIS_TEST_APP=${DEIS_TEST_APP:-example-dockerfile-http}
21+
export DEIS_TEST_APP=${DEIS_TEST_APP:-example-go}
2222
echo "DEIS_TEST_APP=$DEIS_TEST_APP"
2323

2424
# SSH key name used for testing

tests/utils/itutils.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ func GetRandomApp() string {
312312
"example-python-flask",
313313
"example-ruby-sinatra",
314314
"example-scala",
315-
"example-dockerfile-http",
316315
}
317316
return apps[rand.Intn(len(apps))]
318317
}

0 commit comments

Comments
 (0)