Comments (13)
hi again. here's my command
docker run -td -p 8003:80 -e "DRUPAL_GIT_REPO=https://crevillo:*********@github.com/crevillo/tantacom-web" -e "DRUPAL_GIT_BRANCH=drupal-8" --name drupal8003 boran/drupal
That repo is public, so i guess you can do the same with your user and password
Then it starts the pulling
Unable to find image 'boran/drupal:latest' locally
latest: Pulling from boran/drupal
Next, i see logs and...
docker logs -f drupal8003
00. -- /start.sh run date=20160519-1746 base image=boran/drupal Image date=2016-01-12, https://github.com/Boran/webfact, build status in /var/www/html/.start.sh.stat -----
01. setup apache
Enabling module rewrite.
Enabling module vhost_alias.
Enabling module headers.
To activate the new configuration, you need to run:
service apache2 restart
Site 000-default already enabled
02. check mysql
03. Website not installed: there is no /var/www/html/sites/default/settings.php and no DB
04. check mysql environment
-- setup mysql inside the container
160519 17:46:09 mysqld_safe Logging to '/var/log/mysql/error.log'.
160519 17:46:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Generated mysql root + drupal password, see /root/.my.cnf /mysql-root-pw.txt /drupal-db-pw.txt
04. setup drupal
-- download drupal
-- clone the drupal site from git, branch drupal-8
Initialized empty Git repository in /var/www/html/.git/
remote: Counting objects: 516600, done.
remote: Compressing objects: 100% (289/289), done.
remote: Total 516600 (delta 15296), reused 15198 (delta 15198), pack-reused 501113
Receiving objects: 100% (516600/516600), 113.84 MiB | 2.27 MiB/s, done.
Resolving deltas: 100% (367907/367907), done.
From https://github.com/crevillo/tantacom-web
* [new branch] dev -> origin/dev
* [new branch] drupal-8 -> origin/drupal-8
-- git submodule and update
05. -- Installing Drupal with profile=standard site-name=My Drupal Site
require(/var/www/html/vendor/autoload.php): failed to open stream: No[warning]
such file or directory autoload.php:14
PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/autoload.php on line 14
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require(): Failed opening required
'/var/www/html/vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/html/autoload.php, line 14
-- ERROR: drush site-install failed
drush site-install standard -y --account-name=admin --account-pass=admin [email protected] --site-name=My Drupal Site [email protected] --db-url=mysqli://drupal:HIDDEN@localhost:3306/drupal
As you see, when i clone my repo, my repo doesn't have the vendor autoload cause i use to ignore it...
and look like drush is expecting having it there.
Thanks!.
from docker-drupal.
well, drupal example.gitignore tells you to ignore vendor... that's why it's not in my repository.
There's no need to add vendor to git imho, as you're not supposed to modify anything in that folder...
from docker-drupal.
Well why not add it and try again? If that is the problem an issue would have to be raised in the core or drush queues?
from docker-drupal.
adding composer install before the checkout makes it work for me. looks same at geerlingguy/drupal-vm#515
from docker-drupal.
I don't understand fully, what options are you passing to the container on creation?
The error happens on creation or running? Can you show some log outputs?
Composer is installed in the container, but is not used to actually install drupal.
from docker-drupal.
Yes so the drupal you pull down from your git is incomplete, but why do you not include the full distribution ?
As you say, drush is not happy when running the site install with files missing .
Sean Boran
Le 19 mai 2016 Γ 19:51, Carlos Revillo [email protected] a Γ©crit :
hi again. here's my command
docker run -td -p 8003:80 -e "DRUPAL_GIT_REPO=https://crevillo:*********@github.com/crevillo/tantacom-web" -e "DRUPAL_GIT_BRANCH=drupal-8" --name drupal8003 boran/drupal
That repo is public, so i guess you can do the same with your user and passwordThen it starts the pulling
Unable to find image 'boran/drupal:latest' locally
latest: Pulling from boran/drupal
Next, i see logs and...docker logs -f drupal8003
00. -- /start.sh run date=20160519-1746 base image=boran/drupal Image date=2016-01-12, https://github.com/Boran/webfact, build status in /var/www/html/.start.sh.stat -----
- setup apache
Enabling module rewrite.
Enabling module vhost_alias.
Enabling module headers.
To activate the new configuration, you need to run:
service apache2 restart
Site 000-default already enabled- check mysql
- Website not installed: there is no /var/www/html/sites/default/settings.php and no DB
- check mysql environment
-- setup mysql inside the container
160519 17:46:09 mysqld_safe Logging to '/var/log/mysql/error.log'.
160519 17:46:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Generated mysql root + drupal password, see /root/.my.cnf /mysql-root-pw.txt /drupal-db-pw.txt- setup drupal
-- download drupal
-- clone the drupal site from git, branch drupal-8
Initialized empty Git repository in /var/www/html/.git/
remote: Counting objects: 516600, done.
remote: Compressing objects: 100% (289/289), done.
remote: Total 516600 (delta 15296), reused 15198 (delta 15198), pack-reused 501113
Receiving objects: 100% (516600/516600), 113.84 MiB | 2.27 MiB/s, done.
Resolving deltas: 100% (367907/367907), done.
From https://github.com/crevillo/tantacom-web
- [new branch] dev -> origin/dev
- [new branch] drupal-8 -> origin/drupal-8
-- git submodule and update- -- Installing Drupal with profile=standard site-name=My Drupal Site
require(/var/www/html/vendor/autoload.php): failed to open stream: No[warning]
such file or directory autoload.php:14
PHP Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/autoload.php on line 14
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: require(): Failed opening required
'/var/www/html/vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/html/autoload.php, line 14
-- ERROR: drush site-install failed
drush site-install standard -y --account-name=admin --account-pass=admin --account-mail=[email protected] --site-name=My Drupal Site --site-mail=[email protected] --db-url=mysqli://drupal:HIDDEN@localhost:3306/drupal
As you see, when i clone my repo, my repo doesn't have the vendor autoload cause i use to ignore it...
and look like drush is expecting having it there.Thanks!.
β
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
from docker-drupal.
So after the git pull, one needs this?
if Drupal > 8.0 and ! -f composer.json then
composer install
Want to test and submit a pull request? :-)
from docker-drupal.
tested on my env and works: no need to check for drupal version, imho, as we know drupal 7 and drupal 6 has no composer.json.
checking for the existence of composer.json is exactly what i do.
i'll try a pr tomorrow.
Thank you!
from docker-drupal.
Great. But, the same start.sh is used for D7 and D8.
from docker-drupal.
Yes. Just i think test for composer will be enough. Test for version won't
hurt either :)
On Mon, 23 May 2016 22:33 Sean Boran, [email protected] wrote:
Great. But, the same start.sh is used for D7 and D8.
β
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#11 (comment)
from docker-drupal.
Would like to follow up and close this issue, can you paste the code you use here please, if you can't do a pull request?
from docker-drupal.
Closing, see three commits in February, e.g. 5c934d5
from docker-drupal.
Hello.
I am facing the same proble, but i am not using docker. I had clone my working site from my local to my bitbucket repository. Now is already conned into the server and when I try to install it, I face the same problem.
But I don't have the composer on the server. Lucky I will try to install it and solve the problem as you guy commented.
Check it here:
from docker-drupal.
Related Issues (12)
- Drupal does not install - incorrect drush bootstrap level HOT 1
- I want to edit start.sh for my own usage but having trouble HOT 2
- Some more issues while building. HOT 2
- External Database HOT 4
- Build Image Fails HOT 6
- Where is located the external mysql config ? HOT 1
- rename DRUPAL_PASSWORD to MYSQL_PASSWORD HOT 8
- add some way to run a final script at the end of the build HOT 2
- Possibility to install Nginx instead of Apache HOT 1
- Using FROM boran/drupal in Dockerfile, subsequent RUN drush en -y [module] gets pm-enable needs higher bootstrap level error HOT 3
- Issue with git downloading the DRUPAL_MAKE_REPO HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-drupal.