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
Drupal
docker-lampd
Commits
3efa2647
Commit
3efa2647
authored
Jan 08, 2015
by
Ernesto Rodriguez Ortiz
Browse files
Start MySQL and Apache at run
parent
ca7eaf62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
3efa2647
...
...
@@ -24,7 +24,7 @@ RUN drush dl site_audit -y
# Make mysql listen on the outside
RUN
sed
-i
"s/^bind-address/#bind-address/"
/etc/mysql/my.cnf
COPY
apache2-foreground
/usr/local/bin/
COPY
start-servers
/usr/local/bin/
WORKDIR
/var/www/html
EXPOSE
80
CMD
["apache2-foreground"]
\ No newline at end of file
CMD
["start-servers"]
\ No newline at end of file
apache2-foreground
→
start-servers
View file @
3efa2647
#!/bin/bash
set
-e
# Start nysql server
/usr/bin/mysqld_safe &
sleep
10s
# Apache gets grumpy about PID files pre-existing
rm
-f
/var/run/apache2/apache2.pid
source
/etc/apache2/envvars
exec
apache2
-DFOREGROUND
\ No newline at end of file
exec
apache2
-DFOREGROUND
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