Skip to content

Commit e38d95f

Browse files
authored
chore(stacks) add airflow_exporer
1 parent 395c628 commit e38d95f

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
github_headers = {'Authorization': 'token %s' % os.environ.get("GITHUB_TOKEN")}
88

99
repo_info_table = {
10+
"airflow_exporter": {
11+
"name": "airflow_exporter",
12+
"type": "github",
13+
"owner": "EamonZhang",
14+
"match": "^v[2-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
15+
},
1016
"alertmanager": {
1117
"name": "alertmanager",
1218
"type": "github",

stacks/airflow_exporter/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 gcc liblzo2-dev git build-essential
10+
install-stack go "${GO_VERSION}"
11+
. init-stack
12+
13+
echo $GOPATH
14+
git clone https://github.com/EamonZhang/airflow_exporter.git $GOPATH/src/airflow_exporter
15+
cd $GOPATH/src/airflow_exporter/
16+
go get
17+
go build -o airflow_exporter .
18+
19+
BIN_DIR="${DATA_DIR}"/bin
20+
mkdir -p "${BIN_DIR}"
21+
mv airflow_exporter "${BIN_DIR}"
22+
}
23+
24+
# call build stack
25+
build-stack "${1}"
26+

stacks/cloudbeaver/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function build() {
2626
git clone https://github.com/dbeaver/cloudbeaver.git
2727
cd cloudbeaver
2828
git checkout -b release_${STACK_VERSION} --track origin/release_${STACK_VERSION}
29+
2930
cd deploy && ./build.sh && cp -r cloudbeaver/* ${DATA_DIR}
3031
cat << EOF >> "${PROFILE_DIR}"/cloudbeaver.sh
3132
export CLOUDBEAVER_HOME="/opt/drycc/cloudbeaver"

0 commit comments

Comments
 (0)