Skip to content

Commit 440a71d

Browse files
committed
feat(stacks): add wal-g
1 parent f929d8d commit 440a71d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

stacks/wal-g/build.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
install-packages \
10+
gcc liblzo2-dev make cmake git build-essential
11+
install-stack go 1.17.7
12+
. /opt/drycc/go/profile.d/*.sh
13+
14+
git clone https://github.com/wal-g/wal-g/ $GOPATH/src/wal-g \
15+
&& cd $GOPATH/src/wal-g/ \
16+
&& git checkout v$STACK_VERSION \
17+
&& make deps \
18+
&& make pg_install
19+
20+
BIN_DIR="${DATA_DIR}"/bin
21+
mkdir -p "${BIN_DIR}"
22+
mv /wal-g "${BIN_DIR}"
23+
}
24+
25+
# call build stack
26+
build-stack "${1}"
27+

0 commit comments

Comments
 (0)