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

./bin/gremlin.sh requires bash, but only sh is available in container #47

Open
tswaters opened this issue Jul 9, 2018 · 2 comments
Open

Comments

@tswaters
Copy link

tswaters commented Jul 9, 2018

$ docker run --rm -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=test -e ORIENTDB_NODE_NAME=odb1 orientdb:3.0.3-tp3 /orientdb/bin/server.sh -Ddistributed=true
{sha}

$ docker exec -it {sha} /bin/orientdb/gremlin.sh
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "no such file or directory": unknown

I tried to rename the shebang in this file to /bin/sh but the script itself doesn't like that, failing with an error:

$ docker exec -it {sha} /orientdb/bin/gremlin.sh
/orientdb/bin/gremlin.sh: line 45: syntax error: unexpected redirection

I ended up just installing bash --

$ docker exec -it {sha} apk add --no-cache bash gawk sed grep bc coreutils

With that done, it works as expected:

$ docker exec -it {sha} /orientdb/bin/gremlin.sh

         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
gremlin> 
@revslaughter
Copy link

This helped me a lot! I was having the exact same issue, thank you for this. I think that bash should be included if gremlin.sh depends on it.

@palabadi
Copy link

palabadi commented Mar 9, 2019

Thank you

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

3 participants