milvus-deb
This project is used to make a Milvus deb package.
Getting Set Up
Install needed packages
sudo apt install build-essential debhelper dh-make lintian pbuilder
Setting up dh_make
Set up the shell environment variables $DEBEMAIL
and $DEBFULLNAME
so that various Debian maintenance tools recognize your email address and name to use for packages.
cat >>~/.bashrc <<EOF
DEBEMAIL="your.email.address@example.org"
DEBFULLNAME="Firstname Lastname"
export DEBEMAIL DEBFULLNAME
EOF
. ~/.bashrc
Create your GPG key
gpg --full-generate-key
Make a Milvus package
This project provides a script build_deb.sh
to build the milvus deb package. This script adds some additional files needed to build the milvus deb package from the milvus source code.
- Set up debuild
The debuild command executes the lintian command to make a static check after building the Debian package. The lintian command can be customized with the following in the ~/.devscripts
file:
cat >>~/.devscripts >>EOF
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-us -uc -I -i"
DEBUILD_LINTIAN_OPTS="-i -I --show-overrides"
EOF
- make the package
./build_deb.sh
- Review the package
lintian milvus_2.0.0-1_amd64.deb
lintian milvus_2.0.0-1_amd64.changes
Publish deb package to mentors.net
Sign up an account
https://mentors.debian.net/accounts/register/
set up GPG key
- view the gpg key in your computer
gpg --export --export-options export-minimal --armor <keyid>
- configured gpg key shown in the previous step in the control panel
mentors.debian.net
upload packages to You need to use dput
to upload packages. mentors.debian.net
accept your uploads through HTTPS or FTP. All packages must be signed with the GnuPG key you configured in your control panel.
- put the following content to your
~/.dput.cf
file:
cat >>~/.dput.cf <<EOF
[mentors]
fqdn = mentors.debian.net
incoming = /upload
method = https
allow_unsigned_uploads = 0
progress_indicator = 2
# Allow uploads for UNRELEASED packages
allowed_distributions = .*
EOF
- upload
debsign milvus_2.0.0-1_amd64.changes
debsign milvus_2.0.0-1.dsc
dput mentors milvus_2.0.0-1_amd64.changes