Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Terminal requires using bash but some containers uses sh #216

Open
davsclaus opened this issue Sep 8, 2016 · 4 comments
Open

Terminal requires using bash but some containers uses sh #216

davsclaus opened this issue Sep 8, 2016 · 4 comments

Comments

@davsclaus
Copy link
Member

The base images for fabric8 java are shipped with sh and not bash. So you can only shell into them when using sh.

From the web console you get an error

screen shot 2016-09-08 at 1 28 34 pm

Maybe we can try with bash first and if that fails then try sh ?

@gashcrumb
Copy link
Contributor

We could also try not specifying a command, then you'll get whatever
default terminal is defined for the user account in that container, but
then it's also hard to know what shell you're using. That being said, are
we using a different base image these days for Java stuff?

On Thu, Sep 8, 2016 at 7:30 AM, Claus Ibsen [email protected]
wrote:

The base images for fabric8 java are shipped with sh and not bash. So you
can only shell into them when using sh.

From the web console you get an error

[image: screen shot 2016-09-08 at 1 28 34 pm]
https://cloud.githubusercontent.com/assets/477100/18347863/4e6655b6-75c8-11e6-8d29-29012fe4a5b6.png

Maybe we can try with bash first and if that fails then try sh ?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#216, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAVdrKprfBVSAdlX0Vkn97EjejNP2ne-ks5qn_G4gaJpZM4J344_
.

@davsclaus
Copy link
Member Author

I think @rhuss knows best what base images are in use, and what shell they provide. I think there is some base images for community vs product.

@iscra
Copy link

iscra commented Dec 7, 2016

Just noticed this issue in our cluster, happens for all Java projects.

Build with f8-maven-plugin, default image is currently fabric8/java-alpine-openjdk8-jdk based of Alpine 3.4, which does not have bash, just sh.

Making the command configurable in preferences would already help fast.

@ambition-consulting
Copy link

+1

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

No branches or pull requests

4 participants