Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleeper CLI does not use bash when invoking scripts directly #2899

Closed
patchwork01 opened this issue Jul 15, 2024 · 0 comments · Fixed by #2903
Closed

Sleeper CLI does not use bash when invoking scripts directly #2899

patchwork01 opened this issue Jul 15, 2024 · 0 comments · Fixed by #2903
Assignees
Labels
bug Something isn't working
Milestone

Comments

@patchwork01
Copy link
Collaborator

patchwork01 commented Jul 15, 2024

Description

We recently switched the CMD statements in the Sleeper CLI Dockerfiles to use the JSON-based exec form instead of the shell form:

Since then, when we run a script directly with a command like sleeper builder ./sleeper/scripts/build/buildForTest.sh, if the script has no shebang we get this error:

exec /sleeper-builder/sleeper/scripts/build/buildForTest.sh: exec format error

Steps to reproduce

  1. Install Sleeper CLI
  2. Check out Sleeper Git repository inside sleeper builder image
  3. Run sleeper builder ./sleeper/scripts/build/buildForTest.sh
  4. See error

Expected behaviour

All commands run directly with sleeper builder or sleeper environment should be run in a Bash shell.

@patchwork01 patchwork01 added the bug Something isn't working label Jul 15, 2024
@patchwork01 patchwork01 added this to the 0.24.0 milestone Jul 15, 2024
@patchwork01 patchwork01 self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant