############################################################ # Dockerfile to build default CONTENTSERV CS16.1 environment # Based on Ubuntu 16.04 ############################################################ FROM ubuntu:xenial ENV DEBIAN_FRONTEND noninteractive ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 ENV TERM=xterm ############### # install utils ############### #RUN mkdir /etc/apt/sources.list.d/ && ls -l /etc/apt/sources.list.d/ RUN apt-get update && apt-get -y install vim htop software-properties-common python-software-properties mysql-client apt-transport-https supervisor ADD contentserv.list /etc/apt/sources.list.d/ ##################### #add additional repos ##################### RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1D6B9779 && apt-get update && apt-get install -y language-pack-en-base && \ export LC_ALL=en_US.UTF-8 && \ export LANG=en_US.UTF-8 && \ apt-get install -y software-properties-common #RUN echo 'mysql-server mysql-server/root_password password test1234' | debconf-set-selections #RUN echo 'mysql-server mysql-server/root_password_again password test1234' | debconf-set-selections RUN echo "contentserv-cs-core contentserv-cs-core/installation_type select skip" | debconf-set-selections RUN echo "contentserv-cs-core contentserv-cs-core/create_new_project boolean false" | debconf-set-selections RUN echo "contentserv-cs-live contentserv-cs-live/activate_cslive boolean false" | debconf-set-selections RUN apt-get -y install contentserv-cs17.0-core ########### # configure ########### COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf ADD cs-php.ini /etc/php/7.0/mods-available/ ADD cs-apache.conf /etc/apache2/conf-available/ ADD security.conf /etc/apache2/conf-available/ ADD 000-default.conf /etc/apache2/sites-available/ RUN \ /usr/sbin/phpenmod cs-php && \ /usr/sbin/a2enconf cs-apache CMD /usr/bin/supervisord -c /etc/supervisor/supervisord.conf