Build dockerfile fails

  • Hi Guys,


    I'm trying to rebuild my OMV server (RPi4) on a new SD card after running into deprecated dependancies issues reported elsewhere in this forum.


    On my old server I used Portainer to manage docker containers and now trying to get up speed with the docker implementation on OMV.


    I've imported my MariaDB container and it's up and running and my existing DBs are all available. Delighted to be at this point!!! :D


    Now I want to pull a new phpmyadmin image from docker.io but running into problems using the dockerfile they provide (attached)


    Below is the output from the build opertation.


    Any tips on where I should be looking would be greatly appreciated.


    Thanks!


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker build --tag 'phpmyadmin' /srv/dev-disk-by-uuid-49155e6f-fc9e-4806-82cc-612147009a06/Storage/compose//phpmyadmin/ 2>&1': #1 [internal] load build definition from Dockerfile

    #1 transferring dockerfile: 5.28kB done

    #1 DONE 1.0s


    #2 [internal] load .dockerignore

    #2 transferring context: 2B done

    #2 DONE 1.1s


    #3 [internal] load metadata for docker.io/library/php:8.1-apache

    #3 DONE 2.8s


    #4 [internal] load build context

    #4 transferring context: 2B done

    #4 DONE 0.5s


    #5 [1/6] FROM docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42

    #5 resolve docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42

    #5 ...


    #6 [2/6] RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libfreetype6-dev libjpeg-dev libpng-dev libwebp-dev libxpm-dev libzip-dev ; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; docker-php-ext-install -j "$(nproc)" bz2 gd mysqli opcache zip ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*

    #6 CACHED


    #7 [3/6] RUN set -ex; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini; { echo 'session.cookie_httponly=1'; echo 'session.use_strict_mode=1'; } > /usr/local/etc/php/conf.d/session-strict.ini; { echo 'allow_url_fopen=Off'; echo 'max_execution_time=${MAX_EXECUTION_TIME}'; echo 'max_input_vars=10000'; echo 'memory_limit=${MEMORY_LIMIT}'; echo 'post_max_size=${UPLOAD_LIMIT}'; echo 'upload_max_filesize=${UPLOAD_LIMIT}'; echo 'date.timezone=${TZ}'; } > /usr/local/etc/php/conf.d/phpmyadmin-misc.ini

    #7 CACHED


    #8 [4/6] RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr ; export GNUPGHOME="$(mktemp -d)"; export GPGKEY="3D06A59ECE730EB71B511C17CE752F178259BD92"; curl -fsSL -o phpMyAdmin.tar.xz https://files.phpmyadmin.net/p….2.1-all-languages.tar.xz; curl -fsSL -o phpMyAdmin.tar.xz.asc https://files.phpmyadmin.net/p…-all-languages.tar.xz.asc; echo "373f9599dfbd96d6fe75316d5dad189e68c305f297edf42377db9dd6b41b2557 *phpMyAdmin.tar.xz" | sha256sum -c -; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$GPGKEY" || gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY" || gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY" || gpg --batch --keyserver keys.openpgp.org --recv-keys "$GPGKEY"; gpg --batch --verify phpMyAdmin.tar.xz.asc phpMyAdmin.tar.xz; tar -xf phpMyAdmin.tar.xz -C /var/www/html --strip-components=1; mkdir -p /var/www/html/tmp; chown www-data:www-data /var/www/html/tmp; gpgconf --kill all; rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-5.2.1 /var/www/html/CONTRIBUTING.md; grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; php -l /var/www/html/libraries/vendor_config.php; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*

    #8 CACHED


    #9 [5/6] COPY config.inc.php /etc/phpmyadmin/config.inc.php

    #9 CACHED


    #10 [6/6] COPY docker-entrypoint.sh /docker-entrypoint.sh

    #10 ERROR: failed to calculate checksum of ref 7a9be817-6313-4f17-a671-9c047f8d1c16::q97zhiawv5sik3iystj5zkpzl: "/docker-entrypoint.sh": not found


    #5 [1/6] FROM docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42

    #5 resolve docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42 1.1s done

    #5 DONE 1.1s

    ------

    > [6/6] COPY docker-entrypoint.sh /docker-entrypoint.sh:

    ------

    Dockerfile:134

    --------------------

    132 |

    133 | # Copy main script

    134 | >>> COPY docker-entrypoint.sh /docker-entrypoint.sh

    135 |

    136 | ENTRYPOINT [ "/docker-entrypoint.sh" ]

    --------------------

    ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 7a9be817-6313-4f17-a671-9c047f8d1c16::q97zhiawv5sik3iystj5zkpzl: "/docker-entrypoint.sh": not found







    #9 [6/6] COPY docker-entrypoint.sh /docker-entrypoint.sh

    #9 ERROR: failed to calculate checksum of ref 7a9be817-6313-4f17-a671-9c047f8d1c16::fbjfqhwthx8p64uloqnz7ufx2: "/docker-entrypoint.sh": not found


    #10 [1/6] FROM docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42

    #10 resolve docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42

    #10 resolve docker.io/library/php:8.1-apache@sha256:70c5564d061c7915d5d0c6b520958d9c1f1466413e6571164bd86ab23c761b42 1.0s done

    #10 DONE 1.0s

    ------

    > [6/6] COPY docker-entrypoint.sh /docker-entrypoint.sh:

    ------

    Dockerfile:134

    --------------------

    132 |

    133 | # Copy main script

    134 | >>> COPY docker-entrypoint.sh /docker-entrypoint.sh

    135 |

    136 | ENTRYPOINT [ "/docker-entrypoint.sh" ]

    --------------------

    ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 7a9be817-6313-4f17-a671-9c047f8d1c16::fbjfqhwthx8p64uloqnz7ufx2: "/docker-entrypoint.sh": not found in /usr/share/openmediavault/engined/rpc/compose.inc:458

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(619): OMVRpcServiceCompose->{closure}('/tmp/bgstatusuh...', '/tmp/bgoutputIy...')

    #1 /usr/share/openmediavault/engined/rpc/compose.inc(461): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))

    #2 [internal function]: OMVRpcServiceCompose->doBuild(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doBuild', Array, Array)

    #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doBuild', Array, Array, 1)

    #6 {main}

  • votdev

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    Did you add the docker-entrypoint.sh script and make sure to set the filename? Any reason you are building your own image instead of using an image from docker hub?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi Ryecoaaron,


    My intention is to use an image from Docker hub.

    Your comment helped me realise i was approaching this wrong and now realise I should have been using the docker-compose stack rather than the Dockerfile.


    Thanks a million!

    Mundling my way towards technological Nirvana

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!