Permalink
Browse files

Factor out versions into environment variables

  • Loading branch information...
sohrab- committed Mar 24, 2015
1 parent ebd5845 commit b2469c599912f691ff6659e06dc4487eee004dda
Showing with 14 additions and 8 deletions.
  1. +14 −8 Dockerfile
View
@@ -1,6 +1,12 @@
FROM debian:wheezy
MAINTAINER sohrab <sohrab@sixtree.com.au>
ENV JRE_DOWNLOAD_FILE jre-7u75-linux-x64.tar.gz
ENV JRE_DOWNLOAD_URL http://download.oracle.com/otn-pub/java/jdk/7u75-b13/$JRE_DOWNLOAD_FILE
ENV JRE_EXPANDED_FILE jre1.7.0_75
ENV MULE_VERSION 3.6.1
# install supporting tools
RUN apt-get update && \
apt-get install -y procps wget && \
@@ -13,21 +19,21 @@ WORKDIR /tmp
# install Oracle JRE
RUN wget --no-check-certificate --no-cookies \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jre-7u75-linux-x64.tar.gz && \
tar -zxf jre-7u75-linux-x64.tar.gz -C /opt && \
ln -s /opt/jre1.7.0_75 /opt/jre && \
$JRE_DOWNLOAD_URL && \
tar -zxf $JRE_DOWNLOAD_FILE -C /opt && \
ln -s /opt/$JRE_EXPANDED_FILE /opt/jre && \
update-alternatives --install /usr/bin/java java /opt/jre/bin/java 100 && \
rm -rf jre-7u75-linux-x64.tar.gz
rm -rf $JRE_EXPANDED_FILE
ENV JAVA_HOME /opt/jre
ENV JRE_HOME $JAVA_HOME
# install Mule CE
RUN wget --no-check-certificate \
https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/3.6.1/mule-standalone-3.6.1.tar.gz && \
tar -zxf mule-standalone-3.6.1.tar.gz -C /opt && \
ln -s /opt/mule-standalone-3.6.1 /opt/mule && \
rm -rf mule-standalone-3.6.1.tar.gz /opt/mule/apps/default /opt/mule/src
https://repository-master.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/${MULE_VERSION}/mule-standalone-${MULE_VERSION}.tar.gz && \
tar -zxf mule-standalone-${MULE_VERSION}.tar.gz -C /opt && \
ln -s /opt/mule-standalone-${MULE_VERSION} /opt/mule && \
rm -rf mule-standalone-${MULE_VERSION}.tar.gz /opt/mule/apps/default /opt/mule/src
ENV MULE_HOME /opt/mule
ENV PATH $PATH:$MULE_HOME/bin

0 comments on commit b2469c5

Please sign in to comment.