hbielenia / transactions2pln

Other
0 stars 0 forks source link

Budowanie obrazu do testów nie działa #6

Closed hbielenia closed 2 weeks ago

hbielenia commented 2 weeks ago

Przy próbie zbudowania obrazu do testów np. za pomocą komendy task test pojawia się błąd:

> task test
task: [test] docker compose run --rm --build test
[+] Building 4.6s (6/6) FINISHED                                                                                           docker:default
 => [test internal] load build definition from Dockerfile                                                                            0.0s
 => => transferring dockerfile: 1.07kB                                                                                               0.0s
 => [test internal] load metadata for docker.io/library/python:3.11-bullseye@sha256:c927121ba6f075a139438db25b22e0c21df8ecae790958f  0.0s
 => [test internal] load .dockerignore                                                                                               0.0s
 => => transferring context: 2B                                                                                                      0.0s
 => [test 1/3] FROM docker.io/library/python:3.11-bullseye@sha256:c927121ba6f075a139438db25b22e0c21df8ecae790958f5f3764c32e3c25834   0.0s
 => CACHED [test 2/3] WORKDIR /usr/src/app                                                                                           0.0s
 => ERROR [test 3/3] RUN apt-get update  && apt-get install -y locales==2.31-13+deb11u10  && rm -rf /var/lib/apt/lists/*  && locale  4.5s
------                                                                                                                                    
 > [test 3/3] RUN apt-get update        && apt-get install -y locales==2.31-13+deb11u10         && rm -rf /var/lib/apt/lists/*  && localedef -i pl_PL -c -f UTF-8 -A /usr/share/locale/locale.alias pl_PL.UTF-8:                                                                    
1.061 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]                                                                      
1.188 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]                                                   
1.248 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]                                                             
1.313 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8066 kB]
2.481 Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [307 kB]
2.537 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
3.435 Fetched 8579 kB in 3s (2662 kB/s)
3.435 Reading package lists...
3.832 Reading package lists...
4.222 Building dependency tree...
4.321 Reading state information...
4.407 E: Unable to locate package locales=
------
failed to solve: process "/bin/sh -c apt-get update \t&& apt-get install -y locales==2.31-13+deb11u10 \t&& rm -rf /var/lib/apt/lists/* \t&& localedef -i pl_PL -c -f UTF-8 -A /usr/share/locale/locale.alias pl_PL.UTF-8" did not complete successfully: exit code: 100
task: Failed to run task "test": exit status 17
hbielenia commented 2 weeks ago

Naprawione w #7 .