manykarim / robotframework-doctestlibrary

Robot Framework DocTest library. Simple Automated Visual Document Testing.
Apache License 2.0
48 stars 21 forks source link

Running dockerfile fails #27

Closed jaaskilktevry closed 2 years ago

jaaskilktevry commented 2 years ago

Ran doctestlibrarys Dockerfile with command: docker build -t robotframework-doctest .

but it fails with error in step: RUN python setup.py install

The error seems to be related to numpy: To install scikit-image from source, you will need NumPy.

What could be the issue here?

manykarim commented 2 years ago

Oh, I created a new release yesterday. Not sure why it affects the docker build. But let me quickly check and update the dockerfile if needed.

jaaskilktevry commented 2 years ago

Ok. Thanks! However I got the same error last week, so propably not related to the new release.

manykarim commented 2 years ago

I updated the Dockerfile in main branch.

FROM python:3.9

It will now use Python 3.9 as a base image. And it think this works better now. Maybe no wheel was created yet (for Python 3.10) for one of the dependencies.

manykarim commented 2 years ago

I now added a Docker image build to my release process. The latest Dockerimage (built with Python 3.9) is available in my container registry now.

docker pull ghcr.io/manykarim/robotframework-doctestlibrary/rf-doctest:latest

manykarim commented 2 years ago

Please confirm if building the Dockerimage works for you with the updated Python:3.9 base. If yes, let's close the issue afterwards

jaaskilktevry commented 2 years ago

It took a while, but now I was able to build image. Also did a compare test with given command from the readme and seems to work fine : ) Thanks for the quick fix!