Closed davidjguru closed 5 years ago
Well, ok, I got It done :-D I took instructions from here and there and mixing them, I have managed to boot Drupal Site Template in my environments. Now I have a centralized recipe. I put it here, in case someone needs it.
OS - Ubuntu 18.04 PHP - 7.3.5 (but the container will run with its own PHP 7.1).
Docker Docker Compose
sudo apt install -y build-essential apt-transport-https ca-certificates jq curl software-properties-common file
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce
sudo chmod 666 /var/run/docker*
systemctl is-active docker
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
DESTINATION=/usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION
docker-compose --version
sudo /etc/init.d/apache2 stop
git clone https://github.com/openeuropa/drupal-site-template.git
cd drupal-site-template
docker-compose up -d
docker-compose exec web composer install
docker ps docker container inspect IDCONTAINER
sensible-browser IPCONTAINER:8080
docker exec -it IDCONTAINER /bin/bash
./vendor/bin/run toolkit:install-clean
./vendor/bin/drush cex
http://IPCONTAINER:8080/web
Issue resolved.
I was trying to install the Drupal Site from this repo, but is not possible due to errors related with Drush. I follow the steps until: ./vendor/bin/run toolkit:install-clean, Just when is creating the database (I guess)...get an error.![davidjguru_drupal_8_openeuropa](https://user-images.githubusercontent.com/21089086/58022994-02033000-7b0f-11e9-9ca1-410f687a4b2d.png)
I 've created a database called "openeuropa" in my mysql server and I review the .env file with the connection values. All is ok. Is there any reference about this problem? Any tutorial? More info?
Stack: OS: Ubuntu 18.04.2 Apache: 2.4.29 PHP: 7.3.5 Database: Mariadb 15.1