Comments (6)
Could you try the Debian version.
from yii2-docker.
Could you try the Debian version.
How can I do this? I'm newbie in dockers... :(
For example replacing this
DOCKERFILE_FLAVOUR=debian
Make new error
$ docker-compose rm
$ docker rm $(docker ps -aq)
$ docker-compose build
WARNING: The GITHUB_API_TOKEN variable is not set. Defaulting to a blank string.
web uses an image, skipping
Building php
Step 1/14 : ARG PHP_BASE_IMAGE_VERSION
Step 2/14 : FROM php:${PHP_BASE_IMAGE_VERSION}
---> 5ec2c0136450
Step 3/14 : ENV DEBIAN_FRONTEND=noninteractive
---> Running in e7bd37a666f2
Removing intermediate container e7bd37a666f2
---> c57a1685ae8a
Step 4/14 : RUN apt-get update && apt-get -y install gnupg2 && apt-key update && apt-get update && apt-get -y install g++ git curl imagemagick libfreetype6-dev libcurl3-dev libicu-dev libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev libmagickwand-dev libpq-dev libpng-dev libxml2-dev libzip-dev zlib1g-dev mysql-client openssh-client nano unzip --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
---> Running in 1b5962947559
/bin/sh: apt-get: not found
ERROR: Service 'php' failed to build: The command '/bin/sh -c apt-get update && apt-get -y install gnupg2 && apt-key update && apt-get update && apt-get -y install g++ git curl imagemagick libfreetype6-dev libcurl3-dev libicu-dev libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev libmagickwand-dev libpq-dev libpng-dev libxml2-dev libzip-dev zlib1g-dev mysql-client openssh-client nano unzip --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 127
from yii2-docker.
Uncomment the ## Apache
section and comment ## PHP-fpm & nginx
section.
from yii2-docker.
Yes, I think that apache-build works fine
But what for nginx?
$ docker-compose up
WARNING: The GITHUB_API_TOKEN variable is not set. Defaulting to a blank string.
Creating network "yii2apache_default" with the default driver
Creating yii2apache_php_1 ... done
Attaching to yii2apache_php_1
php_1 | usermod: no changes
php_1 | Enabled xdebug
php_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
php_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
php_1 | [Mon Dec 17 06:23:16.196400 2018] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
php_1 | [Mon Dec 17 06:23:16.196811 2018] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
from yii2-docker.
Could you try with nginx on Debian
COMPOSE_PROJECT_NAME=yii2fpm
COMPOSE_FILE=docker-compose.yml:docker-compose.fpm-nginx.yml
DOCKERFILE_FLAVOUR=debian
PHP_BASE_IMAGE_VERSION=7.2-fpm
from yii2-docker.
Yeeeea.... It's work )
Thnx
from yii2-docker.
Related Issues (20)
- Composer Error `Your github oauth token for github.com contains invalid characters` HOT 5
- Add pcov base image to make speedier tests HOT 1
- yii command running from vendor/bin doesn't load config HOT 10
- manifest unknown HOT 1
- Add MsSQL extensions HOT 3
- 8.1 pipeline fails HOT 6
- yiisoftware/yii2-php:7.4-fpm + mac m1 architecture HOT 15
- Install unzip command HOT 3
- Build failed - compose file invalid - unsupported option target HOT 2
- Create alpine version of docker images. HOT 19
- PDOException: could not find driver (trying to use mysql) HOT 16
- Security issue related to Apache 2.4.54 HOT 4
- Usage of this docker with existing yii2 project? HOT 4
- Apply for OpenSource account at Docker hub HOT 5
- Images incorrectly tagged? HOT 1
- Feature/nginx-unit flavour HOT 3
- Not all extensions are visible in phpinfo HOT 6
- Error on Windows HOT 2
- Feature FrankenPHP HOT 1
- Curl/libcurl vulnerabilities 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 yii2-docker.