I create docker container for Laravel 5.5.18 app with next options in web/Dockerfile.yml :
FROM php:7.1-apache
RUN apt-get update -y && apt-get install -y sendmail libpng-dev libtidy-dev libtidy5 libtidy-dev tidy
RUN docker-php-ext-install \
pdo_mysql \
gd \
tidy \
&& a2enmod \
rewrite \
docker-php-ext-enable ext-tidy
and running:
$ docker-compose up -d
lprods_products_catalog is up-to-date
lprods_docker_adminer_1 is up-to-date
lprods_docker_db_1 is up-to-date
Starting lprods_docker_composer_1 ... done
I see next errors in composer log:
$ docker logs --tail=20 lprods_docker_composer_1
- /usr/local/etc/php/conf.d/date_timezone.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
- /usr/local/etc/php/conf.d/memory-limit.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for stolz/laravel-html-tidy 0.1.1 -> satisfiable by stolz/laravel-html-tidy[0.1.1].
- stolz/laravel-html-tidy 0.1.1 requires ext-tidy * -> the requested PHP extension tidy is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
-
- /usr/local/etc/php/conf.d/date_timezone.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
- /usr/local/etc/php/conf.d/memory-limit.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
I added tidy php-tidy in RUN command... It did not call error(I mean syntax error or nonexisting package) but I still have error in logs.
1) Which is the right way?
2) Which is the right way to clear docker logs ? I use option
--tail=20
to show last 20 lines, but actually I am not sure, if I see some errors(like mentioned above) are these errors from my LAST command or they are left from my prior commands ?
composer.json of my project :
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-debugbar": "^2.3",
"graham-campbell/markdown": "^8.0",
"intervention/image": "^2.3",
"khill/lavacharts": "3.0.*",
"laravel/framework": "5.5.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"nwidart/laravel-modules": "^2.2",
"wboyz/laravel-enum": "^0.2.1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~6.0",
"stolz/laravel-html-tidy": "^0.1.1",
"xethron/migrations-generator": "^2.0",
"filp/whoops" : "~2.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"Modules\\": "Modules/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire