-
Notifications
You must be signed in to change notification settings - Fork 609
Open
Description
I presume there has been a docker change in referring to the root directory when building, but I'm not sure. In any case the Python load generator fails when building:
Environment: Linux Mint (22.1 Xia)
Docker version 28.1.1, build 4eba377
task: [build-container-image] docker build -t sidpalas/devops-directive-kubernetes-course-load-generator-python:foobarbaz .
[+] Building 25.1s (10/13) docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 501B 0.0s
=> [internal] load metadata for docker.io/library/python:3.12-slim 1.6s
=> [auth] library/python:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [generate-requirements 1/5] FROM docker.io/library/python:3.12-slim@sha256:31a416db24bd8ade7dac5fd5999ba6c234d7fa79d4add8 2.0s
=> => resolve docker.io/library/python:3.12-slim@sha256:31a416db24bd8ade7dac5fd5999ba6c234d7fa79d4add8781e95f41b187f4c9a 0.0s
=> => sha256:05fa73449bea003a9300685ce040154a0088c3087049ed44f9d8102d4af3b399 1.75kB / 1.75kB 0.0s
=> => sha256:8c6ce09c052ba1dfbf27eac8b255848a4d911af9f55848b0b526180f7b6ba929 5.57kB / 5.57kB 0.0s
=> => sha256:254e724d77862dc53abbd3bf0e27f9d2f64293909cdd3d0aad6a8fe5a6680659 28.23MB / 28.23MB 1.0s
=> => sha256:0c2a5709b400b31dd4e53717a2c8243b75f481de2d97b223a0add484c86187d7 3.51MB / 3.51MB 0.3s
=> => sha256:a3d5ed709dd629cb31906670eeae0397917f263ce4185f719c8b81432821ff9d 13.66MB / 13.66MB 1.3s
=> => sha256:31a416db24bd8ade7dac5fd5999ba6c234d7fa79d4add8781e95f41b187f4c9a 9.13kB / 9.13kB 0.0s
=> => sha256:3d97007bfc7f59bb6ec603b848ea88e9465ddc124aeba04d0579ba2c2dfae80f 249B / 249B 0.7s
=> => extracting sha256:254e724d77862dc53abbd3bf0e27f9d2f64293909cdd3d0aad6a8fe5a6680659 0.4s
=> => extracting sha256:0c2a5709b400b31dd4e53717a2c8243b75f481de2d97b223a0add484c86187d7 0.1s
=> => extracting sha256:a3d5ed709dd629cb31906670eeae0397917f263ce4185f719c8b81432821ff9d 0.3s
=> => extracting sha256:3d97007bfc7f59bb6ec603b848ea88e9465ddc124aeba04d0579ba2c2dfae80f 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 12.94MB 0.2s
=> [generate-requirements 2/5] RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* 5.4s
=> [generate-requirements 3/5] RUN curl -sSL https://install.python-poetry.org | python3 - 15.4s
=> [generate-requirements 4/5] COPY pyproject.toml poetry.lock ./ 0.0s
=> ERROR [generate-requirements 5/5] RUN /root/.local/bin/poetry export --output requirements.txt 0.4s
------
> [generate-requirements 5/5] RUN /root/.local/bin/poetry export --output requirements.txt:
0.410 The requested command export does not exist.
0.410
0.410 Documentation: https://python-poetry.org/docs/cli/
------
Dockerfile:5
--------------------
3 | RUN curl -sSL https://install.python-poetry.org | python3 -
4 | COPY pyproject.toml poetry.lock ./
5 | >>> RUN /root/.local/bin/poetry export --output requirements.txt
6 |
7 | ###
--------------------
ERROR: failed to solve: process "/bin/sh -c /root/.local/bin/poetry export --output requirements.txt" did not complete successfully: exit code: 1
View build details: docker-desktop://dashboard/build/default/default/x9gd0b5mfjyf6de53bbmd95ey
task: Failed to run task "build-container-image": exit status 1
Metadata
Metadata
Assignees
Labels
No labels