This is my Dockerfile, and i cant get this to work. Im always getting this error:
/opt/jboss/bin/standalone.sh: eval: line 1: /usr/java/latest/bin/java: not found
The image seems ok, and im running this with a simple
"docker build -t test ." and
"docker run test
Any ideias?
Thnx,
FROM progrium/busybox
ENV JAVA_HOME /usr/java/latest
ENV PATH $JAVA_HOME/bin:$PATH
RUN opkg-install curl
ADD jre-7u80-linux-i586.tar.gz /usr/java
ADD jboss-as-7.1.1.Final.tar.gz /opt/jboss
RUN ln -s /usr/java/jre1.7.0_80 /usr/java/latest
ADD oracle.tar.gz /opt/jboss/modules/com/
ADD jboss.patch /tmp/
ADD jboss_v7_agent_3.5.1.tar.gz /opt/jboss
ADD setup-jboss /usr/bin
ADD openam.agent.response /tmp/
WORKDIR /opt/jboss
RUN patch -p1 < /tmp/jboss.patch && rm -f /tmp/jboss.patch
RUN chmod +x /usr/bin/setup-jbossa
EXPOSE 8080 8443 8009
CMD setup-jboss