Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mikael Salson
alecsia
Commits
02b3605c
Commit
02b3605c
authored
Mar 11, 2020
by
David Ivain
Browse files
connexion par links, doctrine:database:create fonctionne (a ajouter au dockerfile)
parent
b83704c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker/docker-compose.yml
View file @
02b3605c
...
...
@@ -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
...
...
docker/mysql-db/Dockerfile
View file @
02b3605c
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment