Keresés

Hirdetés

Új hozzászólás Aktív témák

  • syC

    addikt

    Sziasztok!

    Szeretnék (tem volna) egy Drupal 9-et feldobni a gépemre, de mivel 5.6 php-s xampp van fent, ezért gondoltam, a Dockerrel csinálok egy php 7.3mas környezetet és miden szupi lesz. Pár tuorialt megnéztem, a "gyári" docker tutorialos dolog megy, de egy sima egy file-os 'hello world' már nem épül fel, a következő hibaüzenetet kapom:

    sh-3.2# docker build -t teszt .
    [+] Building 2.0s (6/6) FINISHED                                                                                                          
    => [internal] load build definition from Dockerfile                                                                                 0.0s
    => => transferring dockerfile: 259B                                                                                                 0.0s
    => [internal] load .dockerignore                                                                                                    0.0s
    => => transferring context: 2B                                                                                                      0.0s
    => [internal] load metadata for docker.io/library/php:7.3-apache                                                                    1.9s
    => [internal] load build context                                                                                                    0.0s
    => => transferring context: 2B                                                                                                      0.0s
    => CANCELED [1/2] FROM docker.io/library/php:7.3-apache@sha256:c5d4a4894be2513c2113d047faac5fc01cc70031831bba7a1967c086b4a40c36     0.0s
    => => resolve docker.io/library/php:7.3-apache@sha256:c5d4a4894be2513c2113d047faac5fc01cc70031831bba7a1967c086b4a40c36              0.0s
    => ERROR [2/2] COPY /Users/***/Desktop/Docker/teszt/ /var/www/html                                                             0.0s
    ------
    > [2/2] COPY /Users/***/Desktop/Docker/teszt/ /var/www/html:
    ------
    failed to solve with frontend dockerfile.v0: failed to build LLB: failed to compute cache key: failed to walk /var/lib/docker/tmp/buildkit-mount911726142/Users/***/Desktop/Docker: lstat /var/lib/docker/tmp/buildkit-mount911726142/Users/***/Desktop/Docker: no such file or directory

    Mit cseszhetek el?

    [ Szerkesztve ]

  • syC

    addikt

    Sikerült leküzdeni az első akadályt, valóban az elérési úttal volt gond, csak a relatívot fogadta el.

    Viszont, hogy ne legyen teljes az öröm, a D9 telepítésnél hiányolja a gd lib-et. Utána korotram, elivleg a Dockerfile-ban ezze tudom belefordítatni:

    RUN docker-php-ext-install gd

    Természetesen nem működik, ezt dobja:

    => ERROR [4/5] RUN docker-php-ext-install gd                                                                                                                                                                                                                                                               6.4s
    ------                                                                                                                                                                                                                                                                                                           
    > [4/5] RUN docker-php-ext-install gd:                                                                                                                                                                                                                                                                          
    #7 3.126 Configuring for:                                                                                                                                                                                                                                                                                        
    #7 3.126 PHP Api Version:         20180731                                                                                                                                                                                                                                                                       
    #7 3.127 Zend Module Api No:      20180731                                                                                                                                                                                                                                                                       
    #7 3.128 Zend Extension Api No:   320180731                                                                                                                                                                                                                                                                      
    #7 4.335 checking for grep that handles long lines and -e... /bin/grep
    #7 4.341 checking for egrep... /bin/grep -E
    #7 4.346 checking for a sed that does not truncate output... /bin/sed
    #7 4.397 checking for cc... cc
    #7 4.432 checking whether the C compiler works... yes
    #7 4.485 checking for C compiler default output file name... a.out
    #7 4.488 checking for suffix of executables...
    #7 4.568 checking whether we are cross compiling... no
    #7 4.654 checking for suffix of object files... o
    #7 4.694 checking whether we are using the GNU C compiler... yes
    #7 4.728 checking whether cc accepts -g... yes
    #7 4.762 checking for cc option to accept ISO C89... none needed
    #7 4.819 checking how to run the C preprocessor... cc -E
    #7 4.904 checking for icc... no
    #7 4.922 checking for suncc... no
    #7 4.946 checking whether cc understands -c and -o together... yes
    #7 5.200 checking for system library directory... lib
    #7 5.202 checking if compiler supports -R... no
    #7 5.230 checking if compiler supports -Wl,-rpath,... yes
    #7 5.296 checking build system type... x86_64-pc-linux-gnu
    #7 5.310 checking host system type... x86_64-pc-linux-gnu
    #7 5.313 checking target system type... x86_64-pc-linux-gnu
    #7 5.385 checking for PHP prefix... /usr/local
    #7 5.387 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
    #7 5.388 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20180731
    #7 5.390 checking for PHP installed headers prefix... /usr/local/include/php
    #7 5.391 checking if debug is enabled... no
    #7 5.436 checking if zts is enabled... no
    #7 5.479 checking for re2c... re2c
    #7 5.481 checking for re2c version... 1.1.1 (ok)
    #7 5.494 checking for gawk... no
    #7 5.496 checking for nawk... nawk
    #7 5.498 checking if nawk is broken... no
    #7 5.503 checking for GD support... yes, shared
    #7 5.506 checking for the location of libwebp... no
    #7 5.514 checking for the location of libjpeg... no
    #7 5.517 checking for the location of libpng... no
    #7 5.518 checking for the location of libz... no
    #7 5.521 checking for the location of libXpm... no
    #7 5.522 checking for FreeType 2... no
    #7 5.524 checking whether to enable JIS-mapped Japanese font support in GD... no
    #7 5.530 If configure fails try --with-webp-dir=<DIR>
    #7 5.531 If configure fails try --with-jpeg-dir=<DIR>
    #7 5.532 configure: error: png.h not found.
    ------
    failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c docker-php-ext-install gd]: runc did not terminate sucessfully

    Mit csesztem el?
    A szerver, amin futni fog 7.3.22-es php van, mondjuk ezekn tudunk változtatni.

Új hozzászólás Aktív témák