Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds debian packaging #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ debug:

clean:
@$(make) -C src -f Makefile clean

deb:
@$(make) -C src -f Makefile
mkdir -p package/predixy_1.0.5-1_amd64/etc/predixy/conf.d
mkdir -p package/predixy_1.0.5-1_amd64/usr/bin
mkdir -p package/predixy_1.0.5-1_amd64/var/log/predixy
cp src/predixy package/predixy_1.0.5-1_amd64/usr/bin
cp -r conf/* package/predixy_1.0.5-1_amd64/etc/predixy/
dpkg-deb --build package/predixy_1.0.5-1_amd64/
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ For examples:
$ make MT=false
$ make debug MT=false TS=true

To build and create debian package:

$ make deb


## Install

Just copy src/predixy to the install path
Expand Down
6 changes: 6 additions & 0 deletions package/predixy_1.0.5-1_amd64/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: predixy
Version: 1.0.5
Architecture: amd64
Maintainer: Drasrax <[email protected]>
Description: Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster
Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster
2 changes: 2 additions & 0 deletions package/predixy_1.0.5-1_amd64/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
systemctl daemon-reload

12 changes: 12 additions & 0 deletions package/predixy_1.0.5-1_amd64/lib/systemd/system/predixy.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Unit]
Description=Predixy
After=network.target
PartOf=prediy.target
[Service]
Type=simple
User=redis
Group=redis
PrivateTmp=true
ExecStart=/usr/bin/predixy /etc/predixy/predixy.conf
[Install]
WantedBy=multi-user.target predixy.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Unit]
Description=Predixy is a high performance and fully featured proxy for redis sentinel and redis clusterredis_auth: false