Skip to content

Commit f55a524

Browse files
committed
feat(etcd): add etcd
1 parent 0098ecb commit f55a524

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
"owner": "erlang",
6868
"match": "^OTP-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
6969
},
70+
"etcd": {
71+
"name": "etcd",
72+
"type": "github",
73+
"owner": "etcd-io",
74+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
75+
},
7076
"fluentd": {
7177
"name": "fluentd",
7278
"type": "github",

stacks/etcd/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
architecture=$(dpkg --print-architecture)
10+
package="etcd-v${STACK_VERSION}-linux-${architecture}"
11+
12+
BIN_DIR="${DATA_DIR}"/bin
13+
mkdir -p "${BIN_DIR}"
14+
15+
curl -sSL https://github.com/etcd-io/etcd/releases/download/v${STACK_VERSION}/${package}.tar.gz | tar xvz
16+
cp ${package}/etcd ${package}/etcdctl $BIN_DIR
17+
rm -rf ${package}
18+
chmod +x "${BIN_DIR}"/*
19+
}
20+
21+
# call build stack
22+
build-stack "${1}"

0 commit comments

Comments
 (0)