You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

37 lines
1.5 KiB

FROM tomcat:7-jre7
MAINTAINER Blagovest Petrov <blago.petrov@veriosoft.com>
#Environment variables
ENV M2_HOME=/opt/apache-maven
ENV M2=$M2_HOME/bin
ENV PATH=$M2:$PATH
ENV PHANTOM_BIN=/opt/phantomjs-1.9.8-linux-x86_64/bin
ENV PATH=$PHANTOM_BIN:$PATH
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
RUN \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y libfreetype6 libfontconfig bzip2 subversion openjdk-7-jdk && \
apt-get clean && apt-get autoclean && \
# install maven && \
wget http://apache.mirror.digionline.de/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz && \
tar xvfz apache-maven-3.2.5-bin.tar.gz -C /opt && \
rm -fv apache-maven-3.2.5-bin.tar.gz && \
ln -s /opt/apache-maven-3.2.5/ /opt/apache-maven && \
# install phantomjs && \
curl -sSLO https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 && \
tar xvjf phantomjs-1.9.8-linux-x86_64.tar.bz2 -C /opt && \
rm -fv phantomjs-1.9.8-linux-x86_64.tar.bz2 && \
ln -s /opt/phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
# install highcharts export server
RUN \
svn co https://github.com/highslide-software/highcharts.com/trunk/exporting-server/java/highcharts-export && \
mvn -f ./highcharts-export/pom.xml install && \
mvn -f ./highcharts-export/highcharts-export-web/pom.xml clean package && \
cp highcharts-export/highcharts-export-web/target/highcharts-export-web.war webapps && \
rm -rf highcharts-export
EXPOSE 8080