Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:14.04
- MAINTAINER Matthieu Faure <mfaure@asqatasun.org>
- # ##########################################################
- #
- # DISCLAIMER
- #
- # This is a fat container, that is absolutly not compliant to Docker best-practices
- # https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
- # Don't use it for production as all data are wiped out at reboot / rebuild
- # BUT for quick testing, that does the job :)
- #
- # ##########################################################
- USER root
- ENV WWWPORT="8080" \
- DATABASE_DB="asqatasun" \
- DATABASE_HOST="localhost" \
- DATABASE_USER="asqatasun" \
- DATABASE_PASSWD="asqaP4sswd" \
- TOMCAT_WEBAPP_DIR="/var/lib/tomcat7/webapps" \
- TOMCAT_USER="tomcat7" \
- ASQA_URL="http://localhost:8080/asqatasun/" \
- ASQA_ADMIN_EMAIL="me@my-email.org" \
- ASQA_ADMIN_PASSWD="myAsqaPassword" \
- ASQA_RELEASE="4.1.0-SNAPSHOT"
- EXPOSE $WWWPORT
- WORKDIR /root
- # ##########################################################
- #
- # Asqatasun installation
- # cf http://doc.asqatasun.org/en/10_Install_doc/
- #
- # ##########################################################
- # Add Asqatasun
- # Install Asqatasun
- RUN apt-get update
- RUN apt-get -y --no-install-recommends install \
- wget \
- ca-certificates
- # cd /root/ && \
- # wget https://github.com/Asqatasun/Asqatasun/releases/download/v${ASQA_RELEASE}/asqatasun-${ASQA_RELEASE}.i386.tar.gz && \
- # tar xvfz asqatasun-${ASQA_RELEASE}.i386.tar.gz && \
- ADD asqatasun-${ASQA_RELEASE}.i386.tar.gz /root/
- RUN mv asqatasun*/ ./asqatasun/
- RUN cp ./asqatasun/install/xvfb .
- RUN ./asqatasun/install/pre-requisites.sh
- RUN service mysql start
- RUN sleep 5
- RUN cd /root/asqatasun/
- RUN echo "yes\n" | ./install.sh \
- --database-db $DATABASE_DB \
- --database-host $DATABASE_HOST \
- --database-user $DATABASE_USER \
- --database-passwd $DATABASE_PASSWD \
- --asqatasun-url $ASQA_URL \
- --tomcat-webapps $TOMCAT_WEBAPP_DIR \
- --tomcat-user $TOMCAT_USER \
- --asqa-admin-email $ASQA_ADMIN_EMAIL \
- --asqa-admin-passwd $ASQA_ADMIN_PASSWD \
- --firefox-esr-binary-path /opt/firefox/firefox \
- --display-port :99
- RUN rm -rvf /root/asqatasun*
- CMD service mysql start
- CMD sleep 5
- CMD service xvfb start
- CMD service tomcat7 start ; \
- CMD tail -f /var/log/tomcat7/catalina.out \
- /var/log/asqatasun/asqatasun.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement