Hello Thank you for the OSS version. We’re using it inside our company network for almost 3 years now
We don’t have (and don’t plan to have) Docker in production so we’ve been deploying Sentry in an old-fashioned way: as a virtualenv on a bare metal server under CentOS 6 and then 7. I have written a couple of Capistrano tasks for that.
This is rather messy though, and is not how Serious Software™ ought to be deployed. We’d like to package Sentry into nice RPM packages (for CentOS 7) and then install the packages to our production servers like the rest. We have our own RPM repositories and package many OSS for our servers already.
Now the thing is we’re not exactly big experts on Python and its ecosystem. We’ve tried to do some packaging via virtualenv but encountered many problems. I don’t want to go into details just now, but rather would like to know, from people who have experience with packaging, what would be the best approach to making an RPM. I mean, if we know the proper way to do it, and maybe some tools, we might succeed, and won’t need to bother you with the errors.
Glad to hear you’re enjoying Sentry OSS for all those years, hope it’s been a pleasant journey
I don’t know about RPM packaging at all but I believe checking out our Dockerfile would give you some ideas about the build and runtime system-level dependencies. Feel free to ping here about any specifics you need.
Btw, out of curiosity, what holds you back from using the Docker images on bare-metal? You don’t need anything complex like k8s or even docker-compose if you don’t want to? Asking because we are going away from the “native” Python installations and more towards the Docker-based path as they provide the best for consistency, reliability, and ease of development. We are issuing new images per each commit on master, if that’d help you tip towards Docker
For this, I think you can maintain a fork of the repo with the patches applied and build your own Docker images: docker build . -f docker/Dockerfile -t yourcompany/sentry:latest and use them via SENTRY_IMAGE=yourcompany/sentry:latest ./install.sh when installing.