Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CANCELED [frankenphp internal] load build context #731

Open
gmalanchuk opened this issue Apr 17, 2024 · 3 comments
Open

CANCELED [frankenphp internal] load build context #731

gmalanchuk opened this issue Apr 17, 2024 · 3 comments

Comments

@gmalanchuk
Copy link

Why is this happening? I'm doing everything exactly according to the documentation. Maybe the problem is that I'm using wsl?

error
image

grigory@DESKTOP-NOCEPT4:/mnt/d/projects/test$ docker-compose up --build
WARN[0000] /mnt/d/projects/test/docker-compose.yml: `version` is obsolete 
[+] Building 4.2s (6/7)                                                                                                                                              docker:default
 => [frankenphp internal] load build definition from Dockerfile                                                                                                                0.1s
 => => transferring dockerfile: 207B                                                                                                                                           0.1s 
 => [frankenphp internal] load metadata for docker.io/dunglas/frankenphp:latest                                                                                                0.9s 
 => [frankenphp internal] load .dockerignore                                                                                                                                   0.1s
 => => transferring context: 2B                                                                                                                                                0.1s 
 => CACHED [frankenphp 1/3] FROM docker.io/dunglas/frankenphp:latest@sha256:c167308ddec4c1b29ba1a4d38adca95c265723ee1983a86b8077d441648d04de                                   0.0s 
 => => resolve docker.io/dunglas/frankenphp:latest@sha256:c167308ddec4c1b29ba1a4d38adca95c265723ee1983a86b8077d441648d04de                                                     0.0s 
 => CANCELED [frankenphp internal] load build context                                                                                                                          2.3s 
 => => transferring context: 11.71MB                                                                                                                                           2.3s
 => CANCELED [frankenphp 2/3] RUN install-php-extensions     pcntl                                                                                                             3.0s 
failed to solve: error from sender: context canceled

docker-compose

version: '3.8'

services:
    frankenphp:
        build: .
        entrypoint: php artisan octane:frankenphp --max-requests=1
        ports:
            - "8000:8000"
        volumes:
            - .:/app

    mysql:
        image: mysql:8.3
        restart: always
        environment:
            - MYSQL_DATABASE=laravel
            - MYSQL_ROOT_PASSWORD=laravel
        ports:
            - '3306:3306'
        volumes:
            - mysql_data:/var/lib/mysql

    adminer:
        image: adminer:4.8.1
        restart: always
        ports:
            - '8080:8080'
        depends_on:
            - mysql

volumes:
    mysql_data:

Dockerfile

FROM dunglas/frankenphp

RUN install-php-extensions \
    pcntl
    # Add other PHP extensions here...

COPY . /app

ENTRYPOINT ["php", "artisan", "octane:frankenphp"]

@dunglas
Copy link
Owner

dunglas commented Apr 17, 2024

This looks like a potential network error. Double-check that your connection is OK and that no firewall (or similar network tool) block the connection.

@gmalanchuk
Copy link
Author

Other applications build fine in docker, it is the dunglas/frankenphp container that causes the problem. I don't know how to explain it🤷

@dunglas
Copy link
Owner

dunglas commented Apr 18, 2024

Can you try to run docker compose build --progress plain --no-cache and copy the full output please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants