Code Monkey home page Code Monkey logo

patroni-packaging's Introduction

patroni-packaging

This project packages patroni, along with all necessary libs that aren't easily available as packages themselves.

You're probably looking for prebuilt packages, right? Then head over to the releases and download the newest version there!

building the packages yourself

you'll need docker installed and running

  1. navigate to the DEB or RPM directory (depending of what you'd like to build).
  2. execute make docker-image to generate a custom docker image based on either debian or centos, within which the package will be built.
  3. execute make package to build the package. (The Debian side of things will also build vip-manager.) This may take some time, as all necessary python libraries are installed into a virtualenv, which is then packaged.
  4. If you're building .debs, the packages will be in the DEB directory at the end of the build process. On the other hand, after building .rpms, the package will reside in the RPM/rpms directory.

dependencies of the produced packages

rpm

You'll need to install the EPEL repositories, which is the only straight forward way to get psycopg2 in a version newer than 2.5.4 (centos 7 repos only provide 2.5.1), which is a requirement of patroni.

Due to the fact that the python packages on fedora are named python3-something, the packages produced by centos won't work currently, as they require python36-something.

deb

Haven't tested yet. probably python-psycopg2 will suffice. Can probably be automatically installed after apt has finished the dependency check.

The deb packages are still packaged with python2!

patroni-packaging's People

Contributors

ants avatar markwort avatar patsevanton avatar kmoppel avatar kustodian avatar zpavlig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.