StackStorm / st2packaging-dockerfiles

Dockerfiles used to build and test StackStorm deb/rpm packages
https://github.com/StackStorm/st2-packages
32 stars 33 forks source link

Use upstream dh-virtualenv #86

Closed blag closed 3 years ago

blag commented 4 years ago

I don't think we need to use our own fork anymore, since we don't have any shebang lines that are only #!python.

The update.py script updated more of the Dockerfiles than I expected, so I'm not sure if that's normal or not.

Like before, I'm not really sure what I'm doing here, so any help or direction would be more than welcome.

blag commented 4 years ago

Okay, thanks for that. That brings greater clarity to this, but I still have some unanswered questions:

Sorry if this ends up causing you a lot of work. I'm just trying to solve this in a better manner than what we've been doing so far.

blag commented 3 years ago

Our changes were merged into upstream: spotify/dh-virtualenv#317

Now that StackStorm is Python 3-only, it might make it easier to use upstream's dh-virtualenv, once we have the pip and virtualenv version upgrades figured out.

blag commented 3 years ago

I thought about this a little bit more, and our upstreamed changes have not been included in a released version of dh-virtualenv, and even when they are, that will definitely not be backported to Ubuntu Xenial, and probably not even to Ubuntu Bionic, making this PR pointless.

For ST2 v3.5, we should check the version of dh-virtualenv available in the repos, and see if our changes made it in to the latest version of dh-virtualenv available at that point. If not, then we'll have to wait for Ubuntu 22.04, or even later, to use upstream's version. 😞

Closing.

arm4b commented 3 years ago

At least we could switch to upstream dh-virtualenv, instead of using our fork https://github.com/stackstorm/dh-virtualenv

jhermann commented 3 years ago

My strategy in Dockerfiles is to install sid's dh-virtualenv everywhere, which succeeds when you ignore certain dependencies not relevant for a Docker build.

blag commented 3 years ago

@jhermann I'm glad that works for your use case, but would that work for all of our use cases?

jhermann commented 3 years ago

Works for "packaging some Python software using Docker as the build env". Don't see any other use-cases given the scope of dh-venv.