-
Notifications
You must be signed in to change notification settings - Fork 82
Added -busybox switch to handle busybox/alpine containers #101
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
Conversation
|
Also, how does one join your Slack channel? I can not find a link anywhere on habitus.io to allow one to get an invitation to the Slack channel. Might be something you want to put up there if you want to build a community. |
|
Hi @hickey Thank you very much for the PR. I updated the link to our Slack channel in the github repo's README. As for the PR content, I think it's better to remove the explicit reference to Busybox and instead allow overriding the shell command with default being Would you be able to make that minor adjustment please? |
|
Well, I started out that way by first starting to write a I briefly considered using Maybe you have a suggestion that is escaping me. One thing I would want to avoid (and I would think you would too) is to have 6 different command line switches needing various settings to configure for a specific OS. |
|
I completely agree with your point about not having to configure 6 different things for each OS permutation. How about making things a bit more generic by introducing a param called |
|
Oh, that would work pretty well. How about I engineer it so that there is a default of 'linux' (I would like a better label, but can not think of one right now) that has the current functionality and then one can specify I will wait to hear back before making any changes. No use having to continually revise code :-) |
|
I like your idea of using the OS type (ie |
|
Hi @hickey have you made any progress on this one? Would love to have it in the next release if we can. |
|
Sorry, I have been retasked on a bunch of things and it got put to the side. I have a good portion of it done. Let me see if I can get it finalized for the early part of next week. Does that work for your schedule? |
|
Absolutely! Thank you for the help @hickey |
|
Sorry, I forget what I was doing that weekend, but never even thought about getting the changes complete. It occurred to me this weekend that there was work to be done. In any event, here is the final changes for the |
Habitus will now correctly run commands in a busybox or an Alpine container as they use /bin/sh for the shell rather than /bin/bash. In addition updated the stat command to get perms of artifacts to execute correctly under busybox.