-
Notifications
You must be signed in to change notification settings - Fork 447
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 #97 from sgotti/release_v0.2.0
Release v0.2.0
- Loading branch information
Showing
9 changed files
with
122 additions
and
8 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 |
---|---|---|
|
@@ -13,3 +13,4 @@ Session.vim | |
# | ||
bin/ | ||
/gopath/ | ||
/release/ |
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,11 @@ | ||
|
||
### v0.2.0 | ||
|
||
* A stolon client (stolonctl) is provided. At the moment it can be used to get clusters list, cluster status and get/replace/patch cluster config ([#28](https://github.com/sorintlab/stolon/pull/28) [#64](https://github.com/sorintlab/stolon/pull/64)). In future multiple additional functions will be added. See [doc/stolonctl.md](doc/stolonctl.md). | ||
* The cluster config is now configurable using stolonctl ([#2](https://github.com/sorintlab/stolon/pull/2)). See [doc/cluster_config.md](doc/cluster_config.md). | ||
* Users can directly put their preferred postgres configuration files inside a configuration directory ($dataDir/postgres/conf.d or provided with --pg-conf-dir) (see [doc/postgres_parameters.md](doc/postgres_parameters.md)) | ||
* Users can centrally manage global postgres parameters. They can be configured in the cluster configuration (see [doc/postgres_parameters.md](doc/postgres_parameters.md)) | ||
* Now the stolon-proxy closes connections on etcd error. This will help load balancing multiple stolon proxies ([#74](https://github.com/sorintlab/stolon/pull/74) [#76](https://github.com/sorintlab/stolon/pull/76) [#80](https://github.com/sorintlab/stolon/pull/80)). | ||
* kubernetes: added readiness probe for stolon proxy ([#82](https://github.com/sorintlab/stolon/pull/82)) | ||
* The keeper takes an exclusive fs lock on its datadir ([#48](https://github.com/sorintlab/stolon/pull/48)) | ||
* Numerous bug fixes and improved tests. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
VER=$1 | ||
PROJ="stolon" | ||
|
||
if [ -z "$1" ]; then | ||
echo "Usage: ${0} VERSION" >> /dev/stderr | ||
exit 255 | ||
fi | ||
|
||
set -u | ||
|
||
function setup_env { | ||
local proj=${1} | ||
local ver=${2} | ||
|
||
if [ ! -d ${proj} ]; then | ||
git clone https://github.com/sorintlab/${proj} | ||
fi | ||
|
||
pushd ${proj} >/dev/null | ||
git checkout master | ||
git fetch --all | ||
git reset --hard origin/master | ||
git checkout $ver | ||
popd >/dev/null | ||
} | ||
|
||
|
||
function package { | ||
local target=${1} | ||
local srcdir="${2}/bin" | ||
|
||
local ccdir="${srcdir}/${GOOS}_${GOARCH}" | ||
if [ -d ${ccdir} ]; then | ||
srcdir=${ccdir} | ||
fi | ||
for bin in stolon-keeper stolon-sentinel stolon-proxy stolonctl; do | ||
cp ${srcdir}/${bin} ${target}/${bin} | ||
done | ||
|
||
cp stolon/README.md ${target}/README.md | ||
|
||
cp -R stolon/doc ${target}/doc | ||
cp -R stolon/examples ${target}/examples | ||
} | ||
|
||
function main { | ||
mkdir -p release | ||
cd release | ||
setup_env ${PROJ} ${VER} | ||
|
||
for os in linux; do | ||
export GOOS=${os} | ||
export GOARCH="amd64" | ||
|
||
pushd stolon >/dev/null | ||
./build | ||
popd >/dev/null | ||
|
||
TARGET="stolon-${VER}-${GOOS}-${GOARCH}" | ||
mkdir -p ${TARGET} | ||
package ${TARGET} ${PROJ} | ||
|
||
if [ ${GOOS} == "linux" ]; then | ||
tar cfz ${TARGET}.tar.gz ${TARGET} | ||
echo "Wrote release/${TARGET}.tar.gz" | ||
else | ||
zip -qr ${TARGET}.zip ${TARGET} | ||
echo "Wrote release/${TARGET}.zip" | ||
fi | ||
done | ||
} | ||
|
||
main |
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,23 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Build all release binaries and sources into "./release" directory. | ||
# | ||
|
||
set -e | ||
|
||
VERSION=$1 | ||
if [ -z "${VERSION}" ]; then | ||
echo "Usage: ${0} VERSION" >> /dev/stderr | ||
exit 255 | ||
fi | ||
|
||
BASEDIR=$(readlink -f $(dirname $0))/.. | ||
BINDIR=${BASEDIR}/bin | ||
|
||
if [ $PWD != $BASEDIR ]; then | ||
cd $BASEDIR | ||
fi | ||
|
||
|
||
echo Building stolon binary... | ||
./scripts/build-binary ${VERSION} |