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

Error /opt/eclipse_install_tools/install_eclipse.sh: not found #3

Open
wcomnisky opened this issue Dec 22, 2016 · 0 comments
Open

Error /opt/eclipse_install_tools/install_eclipse.sh: not found #3

wcomnisky opened this issue Dec 22, 2016 · 0 comments

Comments

@wcomnisky
Copy link

wcomnisky commented Dec 22, 2016

Using the master branch and trying to build form the Dockerfile I'm getting the following error:

/bin/sh: 1: /opt/eclipse_install_tools/install_eclipse.sh: not found
The command '/bin/sh -c $ECLIPSE_INST_TOOL -y -t $ECLIPSE_BASE_DIR -p egit' returned a non-zero code: 127

So I tried to run the install_eclipse.sh to see what was going on and I got this:

$ cd eclipse_install_tools && chmod +x install_eclipse.sh && ./install_eclipse.sh
bash: ./install_eclipse.sh: /bin/bash^M: bad interpreter: No such file or directory

Complete log for the docker build command:

$ docker build -t docker-eclipse .
Sending build context to Docker daemon 117.8 kB
Step 1 : FROM ubuntu
 ---> 104bec311bcd
Step 2 : MAINTAINER Joerg Matysiak
 ---> Using cache
 ---> ac3862b09f18
Step 3 : ENV USERNAME developer
 ---> Using cache
 ---> 43c8d3f18fe7
Step 4 : RUN export uid=1000 gid=1000 &&     mkdir -p /home/$USERNAME &&     echo "$USERNAME:x:${uid}:${gid}:Developer:/home/$USERNAME:/bin/bash" >> /etc/passwd &&     echo "$USERNAME:x:${uid}:" >> /etc/group &&     chown ${uid}:${gid} -R /home/$USERNAME
 ---> Using cache
 ---> e445bd1ebf15
Step 5 : RUN apt-get update &&     apt-get install libswt-gtk-3-java      unzip ant ant-contrib git bash-completion      curl software-properties-common wget maven -y &&     apt-get clean
 ---> Using cache
 ---> aed272839856
Step 6 : RUN apt-add-repository ppa:webupd8team/java &&     apt-get update &&     echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections &&     echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections &&     apt-get install oracle-java7-installer oracle-java8-installer -y &&     apt-get clean
 ---> Using cache
 ---> 257ce524be0b
Step 7 : ENV ECLIPSE_BASE_DIR /opt
 ---> Using cache
 ---> 721c2409262b
Step 8 : ENV ECLIPSE_INST_TOOL /opt/eclipse_install_tools/install_eclipse.sh
 ---> Using cache
 ---> 87c4a6b1853a
Step 9 : ADD eclipse_install_tools/ /opt/eclipse_install_tools/
 ---> Using cache
 ---> e3c3c8ab80c8
Step 10 : RUN chmod 755 $ECLIPSE_INST_TOOL
 ---> Using cache
 ---> 30d5a9d24d3b
Step 11 : RUN mkdir -p $ECLIPSE_BASE_DIR/eclipse && chown $USERNAME:$USERNAME $ECLIPSE_BASE_DIR/eclipse
 ---> Using cache
 ---> 7d6e59ead161
Step 12 : RUN $ECLIPSE_INST_TOOL -y -t $ECLIPSE_BASE_DIR -p egit
 ---> Running in 09a9a790e7d0
/bin/sh: 1: /opt/eclipse_install_tools/install_eclipse.sh: not found
The command '/bin/sh -c $ECLIPSE_INST_TOOL -y -t $ECLIPSE_BASE_DIR -p egit' returned a non-zero code: 127

Operating system in use:

$ lsb_release -a
LSB Version:	core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 16.10
Release:	16.10
Codename:	yakkety
wcomnisky pushed a commit to wcomnisky/docker-eclipse that referenced this issue Dec 22, 2016
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