Code Monkey home page Code Monkey logo

docker-for-developers's People

Contributors

curia-damiano avatar ddgroleau avatar dependabot[bot] avatar mschwartz avatar obscurerichard avatar packt-itservice avatar packtutkarshr avatar pfrenssen avatar rpigu-i avatar sarvesh-packt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-for-developers's Issues

Chapter 2: Initial container build/run shows PHP warning in browser

When the chapter2 container is initially built and ran, the counter.txt file does not exist. A warning message is displayed in the browser:
chapter2-error

The empty counter.txt file needs to be created prior to file_get_contents() from being called in order to resolve the warning.

Resolved on PR #92

Chapter 2: error on build.sh

Running build.sh, I get the following error:

C:\_WorksNB\Docker-for-Developers\chapter2>bash build.sh
[+] Building 1.9s (12/12) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 1.05kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/debian:latest                                                   0.0s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 5.85kB                                                                                0.1s
 => [1/8] FROM docker.io/library/debian                                                                            0.0s
 => CACHED [2/8] RUN apt-get update -qq >/dev/null && apt-get install -y -qq procps telnet apache2 php7.3 -qq >/d  0.0s
 => CACHED [3/8] RUN useradd --user-group --create-home --shell /bin/false app                                     0.0s
 => CACHED [4/8] WORKDIR /home/app                                                                                 0.0s
 => [5/8] COPY . /home/app                                                                                         0.1s
 => [6/8] RUN mkdir /data && chown -R app /data && chmod 777 /data                                                 0.5s
 => [7/8] COPY php.conf /etc/apache2/mods-available/php7.3.conf                                                    0.1s
 => ERROR [8/8] RUN a2enmod userdir && a2enmod php7.3                                                              0.7s
------
 > [8/8] RUN a2enmod userdir && a2enmod php7.3:
#12 0.623 Enabling module userdir.
#12 0.626 To activate the new configuration, you need to run:
#12 0.626   service apache2 restart
#12 0.652 ERROR: Module php7.3 does not exist!
------
executor failed running [/bin/sh -c a2enmod userdir && a2enmod php7.3]: exit code: 1

It seems that the step number 8 fails because of missing PHP, even if it seems to be installed at step 2.

Do I miss anything?

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.