angeloc / s3-pit-restore

The new home for the s3-pit-restore tool!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker build fails on alpine 3.7

CoaxVex opened this issue · comments

The pip install command doesn't work (anymore) in the alpine 3.7 base image:

[+] Building 21.1s (5/5) FINISHED                                                                                                                              
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 724B                                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                         0.1s
 => => transferring context: 56B                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/python:3-alpine3.7                                                                                     1.7s
 => [1/2] FROM docker.io/library/python:3-alpine3.7@sha256:35f6f83ab08f98c727dbefd53738e3b3174a48b4571ccb1910bae480dcdba847                               4.7s
 => => resolve docker.io/library/python:3-alpine3.7@sha256:35f6f83ab08f98c727dbefd53738e3b3174a48b4571ccb1910bae480dcdba847                               0.0s
 => => sha256:00be2573e9f79754b17954ba7a310a5f70c25b8f5bb78375e27e9e86d874877e 6.13kB / 6.13kB                                                            0.0s
 => => sha256:48ecbb6b270eb481cb6df2a5b0332de294ec729e1968e92d725f1329637ce01b 2.11MB / 2.11MB                                                            0.5s
 => => sha256:692f29ee68fa6bab04aa6a1c6d8db0ad44e287e5ff5c7e1d5794c3aabc55884d 308.48kB / 308.48kB                                                        0.3s
 => => sha256:6439819450d10d1aae92561f3ffff722137aada46d509644e8de4ca82bb26b07 25.90MB / 25.90MB                                                          3.7s
 => => sha256:35f6f83ab08f98c727dbefd53738e3b3174a48b4571ccb1910bae480dcdba847 2.04kB / 2.04kB                                                            0.0s
 => => sha256:014f52b0e7ae4fcd43201bfa4c4e0320c8517b611d7daa0e41ba33a0cb1fab80 1.37kB / 1.37kB                                                            0.0s
 => => sha256:3c7be240f7bfb19ec575d8547832a9f20b95eec9b4cc94fe717dd047ad661159 230B / 230B                                                                0.5s
 => => sha256:ca4b349df8ed83a59776df8f3868ece2783aa1ee2e9f052c9c9f3b54ae51a593 1.81MB / 1.81MB                                                            1.0s
 => => extracting sha256:48ecbb6b270eb481cb6df2a5b0332de294ec729e1968e92d725f1329637ce01b                                                                 0.2s
 => => extracting sha256:692f29ee68fa6bab04aa6a1c6d8db0ad44e287e5ff5c7e1d5794c3aabc55884d                                                                 0.1s
 => => extracting sha256:6439819450d10d1aae92561f3ffff722137aada46d509644e8de4ca82bb26b07                                                                 0.5s
 => => extracting sha256:3c7be240f7bfb19ec575d8547832a9f20b95eec9b4cc94fe717dd047ad661159                                                                 0.0s
 => => extracting sha256:ca4b349df8ed83a59776df8f3868ece2783aa1ee2e9f052c9c9f3b54ae51a593                                                                 0.1s
 => ERROR [2/2] RUN pip3 --no-cache-dir install s3-pit-restore awscli                                                                                    14.6s
------                                                                                                                                                         
 > [2/2] RUN pip3 --no-cache-dir install s3-pit-restore awscli:                                                                                                
#5 1.411 Collecting s3-pit-restore                                                                                                                             
#5 1.813   Downloading https://files.pythonhosted.org/packages/dd/e0/386a00877de74e63c74d7a507ee0d2252b7d799e6b97d20c44d85170d3cb/s3-pit-restore-0.9.tar.gz    
#5 2.141 Collecting awscli                                                                                                                                     
#5 3.166   Downloading https://files.pythonhosted.org/packages/00/34/1565d40bfbedaa6fd7f73890abe9e40132572000ce4373cbb84fb9336ea4/awscli-1.27.120-py3-none-any.whl (4.1MB)
#5 4.366 Collecting boto3 (from s3-pit-restore)
#5 5.138   Downloading https://files.pythonhosted.org/packages/c0/d6/2b64714f43fd5fb29e8231b47f6d1994773ddec170384c61dc04c72ba4a2/boto3-1.26.120-py3-none-any.whl (135kB)
#5 5.185 Collecting botocore==1.29.120 (from awscli)
#5 6.132   Downloading https://files.pythonhosted.org/packages/69/28/a9abd92153dbbaec1c4560df0a58aac0079c2c54872cc504016c9df21bf5/botocore-1.29.120-py3-none-any.whl (10.7MB)
#5 7.688 Collecting PyYAML<5.5,>=3.10 (from awscli)
#5 7.805   Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
#5 7.989   Installing build dependencies: started
#5 11.16   Installing build dependencies: finished with status 'done'
#5 11.16   Getting requirements to build wheel: started
#5 12.74   Getting requirements to build wheel: finished with status 'done'
#5 12.74     Preparing wheel metadata: started
#5 13.02     Preparing wheel metadata: finished with status 'done'
#5 13.03 Collecting s3transfer<0.7.0,>=0.6.0 (from awscli)
#5 13.07   Downloading https://files.pythonhosted.org/packages/5e/c6/af903b5fab3f9b5b1e883f49a770066314c6dcceb589cf938d48c89556c1/s3transfer-0.6.0-py3-none-any.whl (79kB)
#5 13.16 Collecting rsa<4.8,>=3.1.2 (from awscli)
#5 13.22   Downloading https://files.pythonhosted.org/packages/e9/93/0c0f002031f18b53af7a6166103c02b9c0667be528944137cc954ec921b3/rsa-4.7.2-py3-none-any.whl
#5 13.24 Collecting docutils<0.17,>=0.10 (from awscli)
#5 13.30   Downloading https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl (548kB)
#5 13.41 Collecting colorama<0.4.5,>=0.2.5 (from awscli)
#5 13.47   Downloading https://files.pythonhosted.org/packages/44/98/5b86278fbbf250d239ae0ecb724f8572af1c91f4a11edf4d36a206189440/colorama-0.4.4-py2.py3-none-any.whl
#5 13.48 Collecting jmespath<2.0.0,>=0.7.1 (from boto3->s3-pit-restore)
#5 13.53   Downloading https://files.pythonhosted.org/packages/31/b4/b9b800c45527aadd64d5b442f9b932b00648617eb5d63d2c7a6587b7cafc/jmespath-1.0.1-py3-none-any.whl
#5 13.54 Collecting urllib3<1.27,>=1.25.4 (from botocore==1.29.120->awscli)
#5 13.63   Downloading https://files.pythonhosted.org/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl (140kB)
#5 13.68 Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.29.120->awscli)
#5 13.73   Downloading https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
#5 13.78 Collecting pyasn1>=0.1.3 (from rsa<4.8,>=3.1.2->awscli)
#5 13.88   Downloading https://files.pythonhosted.org/packages/14/e5/b56a725cbde139aa960c26a1a3ca4d4af437282e20b5314ee6a3501e7dfc/pyasn1-0.5.0-py2.py3-none-any.whl (83kB)
#5 13.90 Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore==1.29.120->awscli)
#5 13.94   Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
#5 14.28 Exception:
#5 14.28 Traceback (most recent call last):
#5 14.28   File "/usr/local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
#5 14.28     status = self.run(options, args)
#5 14.28   File "/usr/local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 346, in run
#5 14.28     session=session, autobuilding=True
#5 14.28   File "/usr/local/lib/python3.7/site-packages/pip/_internal/wheel.py", line 886, in build
#5 14.28     assert have_directory_for_build
#5 14.28 AssertionError
#5 14.41 You are using pip version 19.0.1, however version 23.1.2 is available.
#5 14.41 You should consider upgrading via the 'pip install --upgrade pip' command.
------
Dockerfile:16
--------------------
  14 |               org.label-schema.schema-version="v0.9"
  15 |     
  16 | >>> RUN pip3 --no-cache-dir install s3-pit-restore awscli
  17 |     
  18 |     ENTRYPOINT [ "s3-pit-restore" ]
--------------------
error: failed to solve: process "/bin/sh -c pip3 --no-cache-dir install s3-pit-restore awscli" did not complete successfully: exit code: 2

Works with alpine:3.17 though.