-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
There's an issue with the way python / pip are being used in the Dockerfile. Logs from recent failing nightly PipelineRun:
2024-11-28T12:18:27.822576390Z �[36mINFO�[0m[0000] Resolved base name docker.io/library/golang:1.22-alpine3.18 to build
2024-11-28T12:18:27.822691723Z �[36mINFO�[0m[0000] Retrieving image manifest docker.io/library/golang:1.22-alpine3.18
2024-11-28T12:18:27.822706749Z �[36mINFO�[0m[0000] Retrieving image docker.io/library/golang:1.22-alpine3.18 from registry index.docker.io
2024-11-28T12:18:28.385828136Z �[36mINFO�[0m[0001] Retrieving image manifest docker.io/library/alpine:3.19
2024-11-28T12:18:28.385913172Z �[36mINFO�[0m[0001] Retrieving image docker.io/library/alpine:3.19 from registry index.docker.io
2024-11-28T12:18:28.918425452Z �[36mINFO�[0m[0001] Built cross stage deps: map[0:[/build/catlin]]
2024-11-28T12:18:28.918506894Z �[36mINFO�[0m[0001] Retrieving image manifest docker.io/library/golang:1.22-alpine3.18
2024-11-28T12:18:28.918518868Z �[36mINFO�[0m[0001] Returning cached image manifest
2024-11-28T12:18:28.918527104Z �[36mINFO�[0m[0001] Executing 0 build triggers
2024-11-28T12:18:28.918986361Z �[36mINFO�[0m[0001] Unpacking rootfs as cmd COPY . /build requires it.
2024-11-28T12:18:34.975540953Z �[36mINFO�[0m[0007] COPY . /build
2024-11-28T12:18:36.020267254Z �[36mINFO�[0m[0008] Taking snapshot of files...
2024-11-28T12:18:37.371529244Z �[36mINFO�[0m[0010] WORKDIR /build
2024-11-28T12:18:37.371580988Z �[36mINFO�[0m[0010] cmd: workdir
2024-11-28T12:18:37.371592067Z �[36mINFO�[0m[0010] Changed working directory to /build
2024-11-28T12:18:37.371711124Z �[36mINFO�[0m[0010] No files changed in this command, skipping snapshotting.
2024-11-28T12:18:37.371758754Z �[36mINFO�[0m[0010] RUN GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -o catlin ./cmd/catlin
2024-11-28T12:18:37.371768939Z �[36mINFO�[0m[0010] Taking snapshot of full filesystem...
2024-11-28T12:18:44.726217443Z �[36mINFO�[0m[0017] cmd: /bin/sh
2024-11-28T12:18:44.726282740Z �[36mINFO�[0m[0017] args: [-c GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -o catlin ./cmd/catlin]
2024-11-28T12:18:44.726294606Z �[36mINFO�[0m[0017] Running: [/bin/sh -c GOOS=linux GARCH=amd64 CGO_ENABLED=0 go build -o catlin ./cmd/catlin]
2024-11-28T12:20:09.385151904Z �[36mINFO�[0m[0102] Taking snapshot of full filesystem...
2024-11-28T12:20:23.258964997Z �[36mINFO�[0m[0115] Saving file build/catlin for later use
2024-11-28T12:20:23.368943148Z �[36mINFO�[0m[0116] Deleting filesystem...
2024-11-28T12:20:24.273619316Z �[36mINFO�[0m[0117] Retrieving image manifest docker.io/library/alpine:3.19
2024-11-28T12:20:24.274316632Z �[36mINFO�[0m[0117] Returning cached image manifest
2024-11-28T12:20:24.275383500Z �[36mINFO�[0m[0117] Executing 0 build triggers
2024-11-28T12:20:24.275414161Z �[36mINFO�[0m[0117] Unpacking rootfs as cmd RUN apk --no-cache add bash shellcheck py3-pip requires it.
2024-11-28T12:20:24.734053001Z �[36mINFO�[0m[0117] RUN apk --no-cache add bash shellcheck py3-pip
2024-11-28T12:20:24.734105396Z �[36mINFO�[0m[0117] Taking snapshot of full filesystem...
2024-11-28T12:20:29.794326516Z �[36mINFO�[0m[0122] cmd: /bin/sh
2024-11-28T12:20:29.794377069Z �[36mINFO�[0m[0122] args: [-c apk --no-cache add bash shellcheck py3-pip]
2024-11-28T12:20:29.794388814Z �[36mINFO�[0m[0122] Running: [/bin/sh -c apk --no-cache add bash shellcheck py3-pip]
2024-11-28T12:20:29.802360965Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
2024-11-28T12:20:30.096090909Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
2024-11-28T12:20:30.603069632Z (1/28) Installing ncurses-terminfo-base (6.4_p20231125-r0)
2024-11-28T12:20:30.619484137Z (2/28) Installing libncursesw (6.4_p20231125-r0)
2024-11-28T12:20:30.636045913Z (3/28) Installing readline (8.2.1-r2)
2024-11-28T12:20:30.651357675Z (4/28) Installing bash (5.2.21-r0)
2024-11-28T12:20:30.677952755Z Executing bash-5.2.21-r0.post-install
2024-11-28T12:20:30.683344372Z (5/28) Installing libexpat (2.6.4-r0)
2024-11-28T12:20:30.697501975Z (6/28) Installing libbz2 (1.0.8-r6)
2024-11-28T12:20:30.710807590Z (7/28) Installing libffi (3.4.4-r3)
2024-11-28T12:20:30.723786281Z (8/28) Installing gdbm (1.23-r1)
2024-11-28T12:20:30.737174623Z (9/28) Installing xz-libs (5.4.5-r0)
2024-11-28T12:20:30.752493890Z (10/28) Installing libgcc (13.2.1_git20231014-r0)
2024-11-28T12:20:30.767504540Z (11/28) Installing libstdc++ (13.2.1_git20231014-r0)
2024-11-28T12:20:30.803189577Z (12/28) Installing mpdecimal (2.5.1-r2)
2024-11-28T12:20:30.818050317Z (13/28) Installing libpanelw (6.4_p20231125-r0)
2024-11-28T12:20:30.830565370Z (14/28) Installing sqlite-libs (3.44.2-r0)
2024-11-28T12:20:30.860238974Z (15/28) Installing python3 (3.11.10-r0)
2024-11-28T12:20:31.144664390Z (16/28) Installing python3-pycache-pyc0 (3.11.10-r0)
2024-11-28T12:20:31.350400963Z (17/28) Installing pyc (3.11.10-r0)
2024-11-28T12:20:31.362546586Z (18/28) Installing py3-setuptools-pyc (70.3.0-r0)
2024-11-28T12:20:31.436269460Z (19/28) Installing py3-pip-pyc (23.3.1-r0)
2024-11-28T12:20:31.587265331Z (20/28) Installing py3-parsing (3.1.1-r0)
2024-11-28T12:20:31.604679622Z (21/28) Installing py3-parsing-pyc (3.1.1-r0)
2024-11-28T12:20:31.624037257Z (22/28) Installing py3-packaging-pyc (23.2-r0)
2024-11-28T12:20:31.639392457Z (23/28) Installing python3-pyc (3.11.10-r0)
2024-11-28T12:20:31.651429396Z (24/28) Installing py3-packaging (23.2-r0)
2024-11-28T12:20:31.667235759Z (25/28) Installing py3-setuptools (70.3.0-r0)
2024-11-28T12:20:31.727198075Z (26/28) Installing py3-pip (23.3.1-r0)
2024-11-28T12:20:31.854155975Z (27/28) Installing gmp (6.3.0-r0)
2024-11-28T12:20:31.871509446Z (28/28) Installing shellcheck (0.9.0-r4)
2024-11-28T12:20:32.096024615Z Executing busybox-1.36.1-r19.trigger
2024-11-28T12:20:32.108039657Z OK: 109 MiB in 43 packages
2024-11-28T12:20:32.223885129Z �[36mINFO�[0m[0124] Taking snapshot of full filesystem...
2024-11-28T12:20:36.161963240Z �[36mINFO�[0m[0128] RUN pip3 install pylint
2024-11-28T12:20:36.162018077Z �[36mINFO�[0m[0128] cmd: /bin/sh
2024-11-28T12:20:36.162025708Z �[36mINFO�[0m[0128] args: [-c pip3 install pylint]
2024-11-28T12:20:36.162031569Z �[36mINFO�[0m[0128] Running: [/bin/sh -c pip3 install pylint]
2024-11-28T12:20:37.812852976Z error: externally-managed-environment
2024-11-28T12:20:37.812895865Z
2024-11-28T12:20:37.812904322Z × This environment is externally managed
2024-11-28T12:20:37.812909777Z ╰─>
2024-11-28T12:20:37.812942973Z The system-wide python installation should be maintained using the system
2024-11-28T12:20:37.812950379Z package manager (apk) only.
2024-11-28T12:20:37.812955439Z
2024-11-28T12:20:37.812960593Z If the package in question is not packaged already (and hence installable via
2024-11-28T12:20:37.812965576Z "apk add py3-somepackage"), please consider installing it inside a virtual
2024-11-28T12:20:37.812972293Z environment, e.g.:
2024-11-28T12:20:37.812977559Z
2024-11-28T12:20:37.812982543Z python3 -m venv /path/to/venv
2024-11-28T12:20:37.812987639Z . /path/to/venv/bin/activate
2024-11-28T12:20:37.812992658Z pip install mypackage
2024-11-28T12:20:37.813012481Z
2024-11-28T12:20:37.813017672Z To exit the virtual environment, run:
2024-11-28T12:20:37.813022272Z
2024-11-28T12:20:37.813027296Z deactivate
2024-11-28T12:20:37.813031840Z
2024-11-28T12:20:37.813036761Z The virtual environment is not deleted, and can be re-entered by re-sourcing
2024-11-28T12:20:37.813042664Z the activate file.
2024-11-28T12:20:37.813047768Z
2024-11-28T12:20:37.813053588Z To automatically manage virtual environments, consider using pipx (from the
2024-11-28T12:20:37.813058818Z pipx package).
2024-11-28T12:20:37.813063316Z
2024-11-28T12:20:37.813069558Z note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
2024-11-28T12:20:37.813076715Z hint: See PEP 668 for the detailed specification.
2024-11-28T12:20:38.151839168Z error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.