Commit a6933338 authored by David Ivain's avatar David Ivain
Browse files

wip docker-compose et dockerfile(s)

parent 2daa750b
FROM php:5.6-apache-stretch
RUN mkdir /persist
RUN apt-get update
# RUN apt-get upgrade
# RUN apt-get install wget -y
RUN apt-get install -y nano git bsdtar curl zip unzip
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
RUN curl -sS https://get.symfony.com/cli/installer | bash
RUN export PATH="$HOME/.symfony/bin:$PATH"
RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
WORKDIR /var/www/html
RUN git clone https://gitlab-fil.univ-lille.fr/mikael.salson/alecsia.git
WORKDIR cd alecsia
# RUN rm composer.lock
# RUN COMPOSER_MEMORY_LIMIT=-1 composer install
# php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
version: '3'
services:
alecsia:
build: './alecsia'
ports:
- '8000:8000'
volumes:
- ./persist:/persist
# depends_on:
# - mysql-db
# mysql-db:
# build: './mysql-db'
# command: --default-authentication-plugin=mysql_native_password
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: 123mdp
FROM mysql
RUN apt-get update && apt-get install -y wget unzip php
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN mkdir /app
WORKDIR /app
RUN wget https://framagit.org/mikaels/teacherbook/-/archive/master/teacherbook-master.zip
RUN unzip teacherbook-master.zip
WORKDIR teacherbook-master
RUN composer install
RUN mysql -u root -e "CREATE DATABASE alecsialegacy" && mysql -u root alecsialegacy < dump.sql
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment