Public Repository

Last pushed: 2 years ago
Short Description
tomcat7
Full Description

Docker Tomcat 7 image with java 7 on Ubuntu 14.04

Created that image from Docker File

#############################

Creating docker image with tomcat7 and oracle jdk on Ubuntu 14.04

FROM ubuntu:14.04

MAINTAINER Shahrukh Achakzai

Updating the Ubuntu 14.04

RUN apt-get update && apt-get -y upgrade

Adding the webupd8 ppa to install oracle jdk

RUN apt-get update && apt-get -y install software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update && apt-get -y upgrade

Acepcting Java License

RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

Installing JAVA 7 jdk

RUN apt-get -y install oracle-java7-installer && apt-get clean

Installing tomcat 7

RUN apt-get -y install tomcat7
RUN echo "JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> /etc/default/tomcat7

EXPOSE 8080

CMD service tomcat7 start && tail -f /var/lib/tomcat7/logs/catalina.out

##########################

port # 32768->8080/tcp

Docker Pull Command
Owner
shahrukhachakzai

Comments (0)