Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: distutils not found in v0.2.13 image #56

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

ethho
Copy link
Contributor

@ethho ethho commented Sep 22, 2024

Uses python:3.11-alpine base image, which contains otumat dependency distutils, instead of python:alpine, which currently points to python:3.12-alpine without distutils installed.

Steps to Reproduce

Details

On c06a6fc:

TAG=foo docker compose up --build         
WARN[0000] /home/eho/repos/dj/nginx-docker/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Building 0.3s (11/11) FINISHED                                                        docker:default
 => [fakeservices.datajoint.io internal] load build definition from Dockerfile                      0.0s
 => => transferring dockerfile: 904B                                                                0.0s
 => [fakeservices.datajoint.io internal] load metadata for docker.io/library/python:alpine          0.2s
 => [fakeservices.datajoint.io internal] load .dockerignore                                         0.0s
 => => transferring context: 2B                                                                     0.0s
 => [fakeservices.datajoint.io 1/5] FROM docker.io/library/python:alpine@sha256:7130f75b1bb16c7c5d  0.0s
 => [fakeservices.datajoint.io internal] load build context                                         0.0s
 => => transferring context: 142B                                                                   0.0s
 => CACHED [fakeservices.datajoint.io 2/5] COPY ./nginx/entrypoint.py /entrypoint.py                0.0s
 => CACHED [fakeservices.datajoint.io 3/5] RUN     apk update &&     apk add openssl nginx nginx-m  0.0s
 => CACHED [fakeservices.datajoint.io 4/5] COPY ./nginx/privkey.pem /etc/letsencrypt/live/fakeserv  0.0s
 => CACHED [fakeservices.datajoint.io 5/5] COPY ./nginx/fullchain.pem /etc/letsencrypt/live/fakese  0.0s
 => [fakeservices.datajoint.io] exporting to image                                                  0.0s
 => => exporting layers                                                                             0.0s
 => => writing image sha256:b55e85f381e49145027db680e9f6f7e451780ce26328bbadf38a19a10c6589a9        0.0s
 => => naming to docker.io/datajoint/nginx:foo                                                      0.0s
 => [fakeservices.datajoint.io] resolving provenance for metadata file                              0.0s
[+] Running 1/1
 ✔ Container nginx-docker-fakeservices.datajoint.io-1  Recreated                                    0.0s 
Attaching to fakeservices.datajoint.io-1
fakeservices.datajoint.io-1  | Traceback (most recent call last):
fakeservices.datajoint.io-1  |   File "/entrypoint.py", line 9, in <module>
fakeservices.datajoint.io-1  |     import otumat.watch
fakeservices.datajoint.io-1  |   File "/usr/local/lib/python3.12/site-packages/otumat/__init__.py", line 4, in <module>
fakeservices.datajoint.io-1  |     import distutils.errors
fakeservices.datajoint.io-1  | ModuleNotFoundError: No module named 'distutils'
fakeservices.datajoint.io-1 exited with code 1

Propagating to datajoint-python CI runs such as: https://github.com/datajoint/datajoint-python/actions/runs/10983009694/job/30491922895?pr=1188

python:alpine currently points to python:3.12-alpine, which does
not include distutils, a dependency for otumat
@ethho ethho self-assigned this Sep 22, 2024
@ethho ethho added the bug Something isn't working label Sep 22, 2024
Dockerfile Show resolved Hide resolved
@yambottle yambottle merged commit f9690cf into master Nov 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants