Commit 02b3605c authored by David Ivain's avatar David Ivain
Browse files

connexion par links, doctrine:database:create fonctionne (a ajouter au dockerfile)

parent b83704c1
......@@ -18,6 +18,7 @@ services:
build: './mysql-db'
ports:
- '80:80'
command: --default-authentication-plugin=mysql_native_password
# networks:
# alecsia_net:
# ipv4_address: 172.19.0.3
......
FROM mysql:5.7.29
ARG MYSQL_ROOT_PASSWORD=root
RUN apt-get update && apt-get install -y wget unzip curl
RUN curl -sS https://getcomposer.org/installer
RUN mv composer.phar /usr/local/bin/composer
# RUN curl -sS https://getcomposer.org/installer
# 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 /app/teacherbook-master
# RUN composer install
RUN mysql -u root -p root alecsia_legacy < dump.sql
RUN cp ../alecsia/docker/config/config.php config.php
\ No newline at end of file
# RUN /etc/init.d/mysql start
# RUN mysql -h 127.0.0.1 -P 3306 -u root -p${MYSQL_ROOT_PASSWORD} -e "CREATE DATABASE lille1teacherbook"
# RUN mysql -h 127.0.0.1 -u root -p${MYSQL_ROOT_PASSWORD} -D lille1teacherbook < dump.sql
# RUN cp ../alecsia/docker/config/config.php config.php
\ No newline at end of file
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