Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description
FROM java:7

MAINTAINER Nima Kaviani

ENV DEBIAN_FRONTEND noninteractive

# Install latest updates
RUN apt-get update
RUN apt-get upgrade -y

# Install mysql client and server
RUN apt-get -y install mysql-client mysql-server curl

# Install database
ADD ./database.sql /var/db/database.sql

# Set Standard settings
ENV user root
ENV password nima678
ENV url file:/var/db/database.sql
ENV right WRITE

# Install starting script
ADD ./start-database.sh /usr/local/bin/start-database.sh
RUN chmod +x /usr/local/bin/start-database.sh

ADD jetty-premise.tar.gz /opt/jetty-premise.tar.gz
RUN mv /opt/jetty-premise.tar.gz/jetty-premise /opt/jetty-premise
RUN useradd jetty -U -s /bin/false
RUN chown -R jetty:jetty /opt/jetty-premise

# Run Jetty

ADD ./run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh

EXPOSE 8383

CMD ["/usr/local/bin/run.sh"]
Docker Pull Command
Owner
nimak

Comments (0)