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

buildah bud does not support SHELL keyword #507

Closed
duritong opened this issue Mar 3, 2018 · 6 comments
Closed

buildah bud does not support SHELL keyword #507

duritong opened this issue Mar 3, 2018 · 6 comments

Comments

@duritong
Copy link

duritong commented Mar 3, 2018

Using buildah 0.12 I am not able to build from Dockerfiles that contain the SHELL keyword:

git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git
cd omnibus-gitlab/docker
sudo buildah bud .
STEP 2: MAINTAINER GitLab Inc. <support@gitlab.com>
STEP 3: SHELL ["/bin/sh", "-c"],
ERRO[0011] Build error: Unknown instruction: "shell"    
error building: error building at step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] Command:shell Args:[/bin/sh -c] Flags:[] Attrs:map[json:true] Message:SHELL /bin/sh -c Original:SHELL ["/bin/sh", "-c"],}: Build error: Unknown instruction: "shell" &imagebuilder.Step{Env:[]string{"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"shell", Args:[]string{"/bin/sh", "-c"}, Flags:[]string{}, Attrs:map[string]bool{"json":true}, Message:"SHELL /bin/sh -c", Original:"SHELL [\"/bin/sh\", \"-c\"],"}
@rhatdan
Copy link
Member

rhatdan commented Mar 4, 2018

It appears that the SHELL command is mainly for Windows. But we will look into adding it.

@rhatdan
Copy link
Member

rhatdan commented Mar 4, 2018

Tom probably need to get this into ImageFactory first.

@rhatdan
Copy link
Member

rhatdan commented Mar 4, 2018

@nalind WDYT?

@duritong
Copy link
Author

duritong commented Mar 6, 2018

I think if buildah likes to become the chosen tool for building container images and provides a build from Dokerfile option, it probably should support all command. Just adding that as comment with regard to "mainly for Windows", but I understood that you are looking into supporting it.

@rhatdan
Copy link
Member

rhatdan commented Mar 16, 2018

openshift/imagebuilder#62 is merges, so we should be able to support the SHELL command now.

@rhatdan
Copy link
Member

rhatdan commented May 25, 2018

We now have SHELL support.

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

No branches or pull requests

3 participants