Closed silvanet123 closed 2 years ago
I had the same issue, so I reverted this PR (https://github.com/minitriga/Netbox-Device-Type-Library-Import/pull/25/files) on my machine and it did build the docker image.
Essentially I did change requirements.txt, the line of urllib3 and I did revert to version 1.25.8 instead of 1.26.5
Hope this helps you @silvanet123 to get around the problem.
I'm not qualified enough to propose a better solution so I will let @minitriga decide on what are the next steps ;-)
I rand the docker build and get the following results
docker build -t netbox-devicetype-import-library . [+] Building 16.8s (9/11) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 334B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/python:3.9-alpine 2.4s => [auth] library/python:pull token for registry-1.docker.io 0.0s => [1/6] FROM docker.io/library/python:3.9-alpine@sha256:7e6fd737db2c21a 1.9s => => resolve docker.io/library/python:3.9-alpine@sha256:7e6fd737db2c21a 0.0s => => sha256:7e6fd737db2c21aabba823d61e141f706fce21f47b7 1.65kB / 1.65kB 0.0s => => sha256:3e7e8a57a959c393797f0c90fa7b0fdbf7a40c4a274 1.37kB / 1.37kB 0.0s => => sha256:2af55166a4810d5124e4e879705be7ee6f51a2e3829 7.17kB / 7.17kB 0.0s => => sha256:5843afab387455b37944e709ee8c78d7520df80f8d0 2.81MB / 2.81MB 0.5s => => sha256:2dfaacf7024eb3bb4c2e67a960e5c65425a95a0 656.34kB / 656.34kB 0.2s => => sha256:2dbba127c6aabc2f949cd9713071cadc28e9702ef 11.47MB / 11.47MB 0.5s => => sha256:1a467efa2204a8af22ba6cf25e6fe11c6cf8be07b0b5adf 230B / 230B 0.4s => => sha256:8b09d69ece5fb7222ff7bd97f4d2d4a3c986974979f 2.36MB / 2.36MB 0.6s => => extracting sha256:5843afab387455b37944e709ee8c78d7520df80f8d01cf7f 0.2s => => extracting sha256:2dfaacf7024eb3bb4c2e67a960e5c65425a95a09a7a49298 0.1s => => extracting sha256:2dbba127c6aabc2f949cd9713071cadc28e9702ef6fdb427 0.5s => => extracting sha256:1a467efa2204a8af22ba6cf25e6fe11c6cf8be07b0b5adfa 0.0s => => extracting sha256:8b09d69ece5fb7222ff7bd97f4d2d4a3c986974979f8d81a 0.2s => [internal] load build context 0.0s => => transferring context: 16.76kB 0.0s => [2/6] COPY requirements.txt . 0.2s => [3/6] RUN apk add --no-cache git 1.4s => ERROR [4/6] RUN pip3 install -r requirements.txt 10.8s