threefoldtech / vbuilders

builders based on docker
Apache License 2.0
1 stars 0 forks source link

image build fails to install tmuxp #38

Closed Omarabdul3ziz closed 1 year ago

Omarabdul3ziz commented 1 year ago

Problem

I built the images 5 days ago and things work fine for tmuxp installation. but when I tried to rebuild it again today I faced an issue installing the tmuxp package. image

What if found when debugging

  1. pip just adopted PEP 668 which breaks --user/--editable flags used in installing tmuxp and that is a known issue on pip repo. which has a fix by adding --break-system-packages. i tried that but did not work image the PR that introduce the fix just merged 1 day ago so maybe is not been released yet.

  2. I tried to make a simple solution just by installing tmuxp in an alpine image without using --user or --editable flags

    
    FROM alpine

RUN apk add py3-pip RUN pip install tmuxp

it works for an `alpine:latest` image but the same scenario doesn't work on `alpine:edge` image *the one used as base for the builders*
```docker
FROM alpine:edge

RUN apk add py3-pip
RUN pip install tmuxp

Alpine wiki says that edge is a development version and it is not stable. so can we use alpine:latest instead? or are there any other fixes for this?

despiegk commented 1 year ago

ok to go to latest

On Tue, Feb 7, 2023 at 6:18 PM Omar Abdulaziz @.***> wrote:

Problem

I built the images 5 days ago and things work fine for tmuxp installation. but when I tried to rebuild it again today I faced an issue installing the tmuxp package. [image: image] https://user-images.githubusercontent.com/32527347/217281363-c86fafbe-34f6-4027-97fb-e48c5e339651.png What if found when debugging

1.

pip just adopted PEP 668 which breaks --user/--editable flags used in installing tmuxp and that is a known issue on pip repo. which has a fix by adding --break-system-packages. i tried that but did not work [image: image] https://user-images.githubusercontent.com/32527347/217278344-6e4547d8-d3a1-4fea-8552-f46ceb2b91ec.png the PR that introduce the fix just merged 1 day ago so maybe is not been released yet. 2.

I tried to make a simple solution just by installing tmuxp in an alpine image without using --user or --editable flags

FROM alpine

RUN apk add py3-pip RUN pip install tmuxp

it works for an alpine:latest image but the same scenario doesn't work on alpine:edge image the one used as base for the builders

FROM alpine:edge

RUN apk add py3-pip RUN pip install tmuxp

Alpine wiki says that edge is a development version and it is not stable. so can we use alpine:latest instead? or are there any other fixes for this?

— Reply to this email directly, view it on GitHub https://github.com/threefoldtech/builders/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN6FVEQ47GB23NXAQ6UIXTWWJRVPANCNFSM6AAAAAAUUDDXGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

despiegk commented 1 year ago

its working on my machine now