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

Docker ubuntu build issue due to set -o pipefail #9

Open
paulmowat opened this issue Oct 30, 2024 · 0 comments
Open

Docker ubuntu build issue due to set -o pipefail #9

paulmowat opened this issue Oct 30, 2024 · 0 comments

Comments

@paulmowat
Copy link

paulmowat commented Oct 30, 2024

This following line is causing problems when trying to build the image and has broken our automated pipeline.

RUN set -o pipefail \

This is giving error '#12 0.672 /bin/sh: 1: set: Illegal option -o pipefail'

Ubuntu by default is using the sh shell, but pipeline -o fail is specific to bash and cannot be used in sh

To solve this step should be executed as RUN /bin/bash set -o pipefail or the set -o pipefail removed so it is compliant with sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant