Skip to content

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

@wcomnisky

Description

@wcomnisky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions