-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12827 from MinaProtocol/lk86/logproc-package
Lk86/logproc package
- Loading branch information
Showing
2 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,16 +24,16 @@ cd "${SCRIPTPATH}/../_build" | |
SHARED_DEPS="libssl1.1, libgmp10, libgomp1, tzdata" | ||
case "${MINA_DEB_CODENAME}" in | ||
bookworm|jammy) | ||
DAEMON_DEPS=", libffi8, libjemalloc2, libpq-dev, libprocps8" | ||
DAEMON_DEPS=", libffi8, libjemalloc2, libpq-dev, libprocps8, mina-logproc" | ||
;; | ||
bullseye|focal) | ||
DAEMON_DEPS=", libffi7, libjemalloc2, libpq-dev, libprocps8" | ||
DAEMON_DEPS=", libffi7, libjemalloc2, libpq-dev, libprocps8, mina-logproc" | ||
;; | ||
buster) | ||
DAEMON_DEPS=", libffi6, libjemalloc2, libpq-dev, libprocps7" | ||
DAEMON_DEPS=", libffi6, libjemalloc2, libpq-dev, libprocps7, mina-logproc" | ||
;; | ||
stretch|bionic) | ||
DAEMON_DEPS=", libffi6, libjemalloc1, libpq-dev, libprocps6" | ||
DAEMON_DEPS=", libffi6, libjemalloc1, libpq-dev, libprocps6, mina-logproc" | ||
;; | ||
*) | ||
echo "Unknown Debian codename provided: ${MINA_DEB_CODENAME}"; exit 1 | ||
|
@@ -86,6 +86,48 @@ ls -lh mina*.deb | |
|
||
##################################### END GENERATE KEYPAIR PACKAGE ####################################### | ||
|
||
##################################### GENERATE KEYPAIR PACKAGE ####################################### | ||
|
||
mkdir -p "${BUILDDIR}/DEBIAN" | ||
cat << EOF > "${BUILDDIR}/DEBIAN/control" | ||
Package: mina-logproc | ||
Version: ${MINA_DEB_VERSION} | ||
License: Apache-2.0 | ||
Vendor: none | ||
Architecture: amd64 | ||
Maintainer: o(1)Labs <[email protected]> | ||
Installed-Size: | ||
Depends: ${SHARED_DEPS} | ||
Section: base | ||
Priority: optional | ||
Homepage: https://minaprotocol.com/ | ||
Description: Utility for processing mina-daemon log output | ||
Utility for processing mina-daemon log output | ||
Built from ${GITHASH} by ${BUILD_URL} | ||
EOF | ||
|
||
echo "------------------------------------------------------------" | ||
echo "Control File:" | ||
cat "${BUILDDIR}/DEBIAN/control" | ||
|
||
# Binaries | ||
rm -rf "${BUILDDIR}/usr/local/bin" | ||
mkdir -p "${BUILDDIR}/usr/local/bin" | ||
cp ./default/src/app/logproc/logproc.exe "${BUILDDIR}/usr/local/bin/mina-logproc" | ||
|
||
# echo contents of deb | ||
echo "------------------------------------------------------------" | ||
echo "Deb Contents:" | ||
find "${BUILDDIR}" | ||
|
||
# Build the package | ||
echo "------------------------------------------------------------" | ||
fakeroot dpkg-deb --build "${BUILDDIR}" mina-logproc_${MINA_DEB_VERSION}.deb | ||
ls -lh mina*.deb | ||
|
||
##################################### END LOGPROC PACKAGE ####################################### | ||
|
||
##################################### GENERATE MINA MAINNET PACKAGE ####################################### | ||
|
||
###### deb without the proving keys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ Vendor: none | |
Architecture: amd64 | ||
Maintainer: o(1)Labs <[email protected]> | ||
Installed-Size: | ||
Depends: ${DEPS}, python3, nodejs, yarn, google-cloud-sdk, kubectl, google-cloud-sdk-gke-gcloud-auth-plugin, terraform, helm | ||
Depends: mina-logproc, ${DEPS}, python3, nodejs, yarn, google-cloud-sdk, kubectl, google-cloud-sdk-gke-gcloud-auth-plugin, terraform, helm | ||
Section: base | ||
Priority: optional | ||
Homepage: https://minaprotocol.com/ | ||
|
@@ -63,7 +63,6 @@ cat "${BUILDDIR}/DEBIAN/control" | |
|
||
# Binaries | ||
mkdir -p "${BUILDDIR}/usr/local/bin" | ||
cp ./default/src/app/logproc/logproc.exe "${BUILDDIR}/usr/local/bin/mina-logproc" | ||
cp ./default/src/app/test_executive/test_executive.exe "${BUILDDIR}/usr/local/bin/mina-test-executive" | ||
|
||
|
||
|