Proposal: Add minimal development containerized environemnt to run tests#317
Proposal: Add minimal development containerized environemnt to run tests#317Wabri wants to merge 1 commit intoopenSUSE:masterfrom
Conversation
okurz
left a comment
There was a problem hiding this comment.
As there is already https://github.com/openSUSE/qem-bot/blob/master/Containerfile this might be a bit confusing for users finding both. Also Containerfile is using a different approach. Here you spawn a container to run pip within. Why not just a Python virtualenv then?
|
This container it's meant to be use to only as development environment different from Containerfile that run the entire software. I'm never be a huge fan of python virtual environment and since from when I learn docker I always try to replace virtualenv, and related, with docker/podman. I find docker more straight forward and less disruptive than other method. In other project I find it more reliable regards env variables, system libraries and it's more easy to check the execution with different python versions. It's also more easy to use with a new contributor, have more ways to run, test and develop the software is a good practice in my view. |
| @@ -0,0 +1,11 @@ | |||
| FROM python:3.12-slim | |||
There was a problem hiding this comment.
Is there a reason to not use Tumbleweed/Leap as a base?
There was a problem hiding this comment.
I take a template from another project of mine. If there is a slim opensuse python image base that would be great.
No description provided.