We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f929d8d commit 440a71dCopy full SHA for 440a71d
1 file changed
stacks/wal-g/build.sh
@@ -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