-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Simpler build scripts (#1964)"
This reverts commit 39a0c9c.
- Loading branch information
Nick Vyzas
authored
Mar 20, 2019
1 parent
39a0c9c
commit 199b4cb
Showing
8 changed files
with
137 additions
and
114 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
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
18 changes: 18 additions & 0 deletions
18
docker/images/proxysql/deb-compliant/ch-entrypoint/entrypoint.bash
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Delete package if exists | ||
rm -f /opt/proxysql/binaries/proxysql_${CURVER}-${PKG_RELEASE}_amd64.deb || true && | ||
# Cleanup relic directories from a previously failed build | ||
rm -f /opt/proxysql/proxysql.ctl || true && | ||
# Clean and build dependancies and source | ||
cd /opt/proxysql && \ | ||
${MAKE} cleanbuild && \ | ||
${MAKE} ${MAKEOPT} build_deps_clickhouse && \ | ||
${MAKE} clickhouse ${MAKEOPT} && \ | ||
# Prepare package files and build RPM | ||
cp /root/ctl/proxysql.ctl /opt/proxysql/proxysql.ctl && \ | ||
sed -i "s/PKG_VERSION_CURVER/${CURVER}/g" /opt/proxysql/proxysql.ctl && \ | ||
cp /opt/proxysql/src/proxysql /opt/proxysql/ && \ | ||
equivs-build proxysql.ctl && \ | ||
mv /opt/proxysql/proxysql_${CURVER}_amd64.deb ./binaries/proxysql_${CURVER}-${PKG_RELEASE}_amd64.deb && \ | ||
# Cleanup current build | ||
rm -f /opt/proxysql/proxysql.ctl /opt/proxysql/proxysql |
Oops, something went wrong.