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

Support for Docker images that don't have bash #132

Open
niemasd opened this issue Apr 10, 2021 · 0 comments
Open

Support for Docker images that don't have bash #132

niemasd opened this issue Apr 10, 2021 · 0 comments

Comments

@niemasd
Copy link

niemasd commented Apr 10, 2021

I generally create Docker images using the Alpine base image to keep them compact and minimal. However, Alpine doesn't have bash by default (just sh), and Reflow doesn't seem to support images that don't have bash. For example, the following Reflow file doesn't run (it just hangs infinitely):

val Main = exec(image := "alpine", mem := GiB) (out file) {"
    echo hello world >>{{out}}
"}

However, using the niemasd/bash:latest image I created, which uses Alpine as its base image and just installs bash on top of it, the following Reflow file runs fine:

val Main = exec(image := "niemasd/bash:latest", mem := GiB) (out file) {"
    echo hello world >>{{out}}
"}

As a workaround, I'll just add bash to my Docker images because it's not too big compared to the other programs I install, but it would be nice to support sh or whatever other shells a given Docker image might have rather than requiring bash specifically

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