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
eab09ff7
Commit
eab09ff7
authored
May 06, 2020
by
David Ivain
Browse files
wait-for-it + persist log
parent
e92e1c3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
eab09ff7
...
...
@@ -26,3 +26,4 @@ upload/*
/doc/user/manual.html
/demo
/docker/upload/*
/docker/database
docker/alecsia/Dockerfile
View file @
eab09ff7
...
...
@@ -19,6 +19,8 @@ RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
WORKDIR
/var/www/html
RUN
wget https://gitlab-fil.univ-lille.fr/mikael.salson/alecsia/-/archive/david/alecsia-david.zip
RUN
unzip alecsia-david.zip
RUN
wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh
RUN
chmod
+x wait-for-it.sh
RUN
rm
alecsia-david.zip
RUN
mv
alecsia-david alecsia
WORKDIR
/var/www/html/alecsia
...
...
docker/docker-compose.yml
View file @
eab09ff7
...
...
@@ -5,10 +5,12 @@ services:
build
:
'
./alecsia'
volumes
:
-
./upload:/var/www/html/alecsia/upload
-
./logs/alecsia:/var/www/html/alecsia/app/logs
-
./logs/apache2:/var/log/apache2
ports
:
-
'
8000:8000'
-
'
8080:80'
command
:
bash -c "(php /var/www/html/alecsia/app/console doctrine:schema:create || php /var/www/html/alecsia/app/console doctrine:schema:update --force) && /etc/init.d/apache2 start && cat"
command
:
bash -c "
/var/www/html/wait-for-it.sh database:3306 --strict --timeout=300 &&
(php /var/www/html/alecsia/app/console doctrine:schema:create || php /var/www/html/alecsia/app/console doctrine:schema:update --force) && /etc/init.d/apache2 start && cat"
tty
:
true
links
:
-
"
mysql-db:database"
...
...
@@ -18,6 +20,7 @@ services:
image
:
mysql:5.7.29
volumes
:
-
./dump.sql:/docker-entrypoint-initdb.d/dump.sql
-
./database:/var/lib/mysql
ports
:
-
"
3306:3306"
command
:
--default-authentication-plugin=mysql_native_password
...
...
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