Skip to content

Commit cdf3fe9

Browse files
committed
chore(stacks): add flink
1 parent 1353b27 commit cdf3fe9

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,12 @@
319319
"owner": "apache",
320320
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
321321
},
322+
"flink": {
323+
"name": "flink",
324+
"type": "github",
325+
"owner": "apache",
326+
"match": "^release-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
327+
},
322328
"opensearch": {
323329
"name": "OpenSearch",
324330
"type": "github",

stacks/flink/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
curl -fsSL -o tmp.tgz https://dlcdn.apache.org/flink/flink-${STACK_VERSION}/flink-${STACK_VERSION}-bin-scala_2.12.tgz
10+
tar -xzf tmp.tgz
11+
mv flink-${STACK_VERSION}/* "${DATA_DIR}"
12+
rm flink-${STACK_VERSION} tmp.tgz -rf
13+
14+
mkdir -p "${DATA_DIR}"/env
15+
echo "/opt/drycc/flink" > "${DATA_DIR}"/env/FLINK_HOME
16+
cat << EOF > ${PROFILE_DIR}/${STACK_NAME}.sh
17+
export PATH="/opt/drycc/flink/bin:\$PATH"
18+
EOF
19+
}
20+
21+
# call build stack
22+
build-stack "${1}"
23+

0 commit comments

Comments
 (0)