Giter VIP home page Giter VIP logo

Comments (6)

schmunk42 avatar schmunk42 commented on July 16, 2024

Could you try the Debian version.

from yii2-docker.

lgXenos avatar lgXenos commented on July 16, 2024

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.

schmunk42 avatar schmunk42 commented on July 16, 2024

Uncomment the ## Apache section and comment ## PHP-fpm & nginx section.

from yii2-docker.

lgXenos avatar lgXenos commented on July 16, 2024

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.

schmunk42 avatar schmunk42 commented on July 16, 2024

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.

lgXenos avatar lgXenos commented on July 16, 2024

Yeeeea.... It's work )
Thnx

from yii2-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.