RUN sh /root/start_mysql.sh; mysqladmin -u root password root; mysql -e "CREATE DATABASE comunic"; exit
RUN sh /root/start_mysql.sh; mysql -e "CREATE USER 'comunic'@'localhost'; GRANT ALL PRIVILEGES ON comunic.* To 'comunic'@'localhost' IDENTIFIED BY 'comunic';"; exit
RUN rm /etc/apache2/sites-enabled/000-default.conf
COPY apache2.conf /etc/apache2/sites-enabled
#Retrieve Comunic API
RUN mkdir /data/
RUN git clone https://github.com/pierre42100/ComunicAPI /data/api
#Import database
RUN sh /root/start_mysql.sh; mysql comunic < /data/api/db_struct.sql; exit