Bachir Soussi Chiadmi 00e0eea74a solr is running, and reachable from php:drush but drush sapi-c and drush sapi-i raise errors | 6 years ago | |
---|---|---|
base_d7 | 6 years ago | |
log | 6 years ago | |
nginx | 6 years ago | |
php | 6 years ago | |
solr | 6 years ago | |
.env | 6 years ago | |
.gitignore | 6 years ago | |
README.md | 6 years ago | |
docker-compose.yml | 6 years ago |
MateriO Base powered by druapl 7 docker environement
sudo pacman -S docker docker-compose docker-machine
git clone -o figli https://figureslibres.io/gogs/bachir/docker-materio.git
cd docker-materio
git clone -o figli https://figureslibres.io/gogs/bachir/materio-base-d7.git base_d7
<Virtualhost *:80>
ServerName dev.materio.com
ProxyPass / http://127.0.0.1:81/
ProxyPassReverse / http://127.0.0.1:81/
ProxyRequests Off
</Virtualhost>
<Virtualhost *:80>
ServerName dev.phpmyadmin.materio.com
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ProxyRequests Off
</Virtualhost>
sudo docker-compose build
sudo docker-compose run -d
log into php container
sudo docker exec -it materio_php_1 bash
once inside the php container in /var/www/html you can use drush as usual
copy your db backup into the mysql container
sudo docker cp your-db-file.sql materio_mysql_1:/root/
log into mysql container
sudo docker exec -it materio_php_1 bash
once inside the mysql container you can use mysql command to create and load the db with your file
https://www.ostraining.com/blog/drupal/docker/
http://tech.osteel.me/posts/2017/01/15/how-to-use-docker-for-local-web-development-an-update.html
https://mmenozzi.github.io/2016/01/22/php-web-development-with-docker/
https://dzone.com/articles/continuous-drupal-maintaining-a-drupal-website-wit