daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 450 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. FROM ubuntu:14.04
  2. MAINTAINER Matthieu Faure <mfaure@asqatasun.org>
  3.  
  4. # ##########################################################
  5. #
  6. #                      DISCLAIMER
  7. #
  8. # This is a fat container, that is absolutly not compliant to Docker best-practices
  9. # https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
  10. # Don't use it for production as all data are wiped out at reboot / rebuild
  11. # BUT for quick testing, that does the job :)
  12. #
  13. # ##########################################################
  14.  
  15. USER root
  16.  
  17. ENV WWWPORT="8080" \
  18.     DATABASE_DB="asqatasun" \
  19.     DATABASE_HOST="localhost" \
  20.     DATABASE_USER="asqatasun" \
  21.     DATABASE_PASSWD="asqaP4sswd" \
  22.     TOMCAT_WEBAPP_DIR="/var/lib/tomcat7/webapps" \
  23.     TOMCAT_USER="tomcat7" \
  24.     ASQA_URL="http://localhost:8080/asqatasun/" \
  25.     ASQA_ADMIN_EMAIL="me@my-email.org" \
  26.     ASQA_ADMIN_PASSWD="myAsqaPassword"  \
  27.     ASQA_RELEASE="4.1.0-SNAPSHOT"
  28.  
  29. EXPOSE $WWWPORT
  30.  
  31. WORKDIR /root
  32.  
  33. # ##########################################################
  34. #
  35. # Asqatasun installation
  36. # cf http://doc.asqatasun.org/en/10_Install_doc/
  37. #
  38. # ##########################################################
  39.  
  40. # Add Asqatasun
  41. # Install Asqatasun
  42. RUN apt-get update
  43. RUN apt-get -y --no-install-recommends install \
  44.                                        wget \
  45.                                        ca-certificates
  46. #    cd /root/ && \
  47. #    wget https://github.com/Asqatasun/Asqatasun/releases/download/v${ASQA_RELEASE}/asqatasun-${ASQA_RELEASE}.i386.tar.gz && \
  48. #    tar xvfz asqatasun-${ASQA_RELEASE}.i386.tar.gz && \
  49. ADD    asqatasun-${ASQA_RELEASE}.i386.tar.gz /root/
  50. RUN    mv asqatasun*/ ./asqatasun/
  51. RUN    cp ./asqatasun/install/xvfb .
  52. RUN    ./asqatasun/install/pre-requisites.sh
  53. RUN    service mysql start
  54. RUN    sleep 5
  55. RUN    cd /root/asqatasun/
  56. RUN    echo "yes\n" | ./install.sh  \
  57.         --database-db $DATABASE_DB \
  58.         --database-host $DATABASE_HOST \
  59.         --database-user $DATABASE_USER \
  60.         --database-passwd $DATABASE_PASSWD \
  61.         --asqatasun-url $ASQA_URL \
  62.         --tomcat-webapps $TOMCAT_WEBAPP_DIR \
  63.         --tomcat-user $TOMCAT_USER \
  64.         --asqa-admin-email $ASQA_ADMIN_EMAIL \
  65.         --asqa-admin-passwd $ASQA_ADMIN_PASSWD \
  66.         --firefox-esr-binary-path /opt/firefox/firefox \
  67.         --display-port :99
  68. RUN    rm -rvf  /root/asqatasun*
  69.  
  70. CMD service mysql start
  71. CMD    sleep 5
  72. CMD    service xvfb start
  73. CMD    service tomcat7 start ; \
  74. CMD    tail -f /var/log/tomcat7/catalina.out \
  75.          /var/log/asqatasun/asqatasun.log
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top