EGA-archive / LocalEGA

A federated storage for sensitive data
http://localega.readthedocs.io
Apache License 2.0
7 stars 16 forks source link

python versions in cega-users Dockerfile #129

Closed mshadbolt closed 2 years ago

mshadbolt commented 2 years ago

I was just attempting to run this locally following the instructions but kept getting the error:

=> ERROR [stage-1 2/3] COPY --from=BUILD usr/local/lib/python3.8/ usr/local/lib/python3.8/                                                                                                                           0.0s 
------                                                                                                                                                                                                                     
 > [stage-1 2/3] COPY --from=BUILD usr/local/lib/python3.8/ usr/local/lib/python3.8/:                                                                                                                                      
------                                                                                                                                                                                                                     
failed to compute cache key: "/usr/local/lib/python3.8" not found: not found                                                                                                                                               
ERROR: Service 'cega-users' failed to build : Build failed

Until I changed the python version in the snippet below to 3.10 instead of 3.8

https://github.com/EGA-archive/LocalEGA/blob/9f3142589844e3e5354e1925322d0f6473c63c9c/deploy/bootstrap/cega-users/Dockerfile#L20

After changing it, it built and started successfully.

I assume this is because the build env python version needs to be the same so it can copy properly? But all new to me so wasn't sure if I should do a PR.

Cheers Marion

silverdaz commented 2 years ago

Good catch, thanks! Fixed in commit #ecd7d36