Skip to content

Commit a5690e3

Browse files
committed
nit
1 parent 1497dc6 commit a5690e3

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

website/docs/quickstart/flink.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ Congratulations, you are all set!
123123

124124
If you want to run with your own Flink environment, you can follow the steps below.
125125

126-
1. Create a `lib` directory. Download [fluss-flink connector jar](/downloads), [flink-connector-faker](https://github.com/knaufk/flink-faker/releases) and then put them to `lib`.
126+
1. Create a Dockerfile named fluss.Dockerfile as follows:
127127

128-
2. Set the desired Flink version. For example:
129-
130-
```shell
131-
export FLINK_VERSION=1.20.3
128+
```yaml
129+
FROM flink:1.20.2-scala_2.12
130+
RUN wget -P /opt/flink/lib https://github.com/knaufk/flink-faker/releases/download/v0.5.3/flink-faker-0.5.3.jar
131+
RUN wget -P /opt/flink/lib https://repo1.maven.org/maven2/org/apache/fluss/fluss-flink-1.20/0.8.0-incubating/fluss-flink-1.20-0.8.0-incubating.jar
132132
```
133133

134-
3. Create a `docker-compose.yml` file with the following content:
134+
2. Create a `docker-compose.yml` file with the following content:
135135

136136
```yaml
137137
services:
@@ -166,18 +166,18 @@ services:
166166
#end
167167
#begin Flink cluster
168168
jobmanager:
169-
image: apache/flink:${FLINK_VERSION}
169+
build:
170+
dockerfile: ./fluss.Dockerfile
170171
ports:
171172
- "8083:8081"
172173
command: jobmanager
173174
environment:
174175
- |
175176
FLINK_PROPERTIES=
176177
jobmanager.rpc.address: jobmanager
177-
volumes:
178-
- ./lib:/tmp/lib
179178
taskmanager:
180-
image: apache/flink:${FLINK_VERSION}
179+
build:
180+
dockerfile: ./fluss.Dockerfile
181181
depends_on:
182182
- jobmanager
183183
command: taskmanager
@@ -188,8 +188,17 @@ services:
188188
taskmanager.numberOfTaskSlots: 10
189189
taskmanager.memory.process.size: 2048m
190190
taskmanager.memory.framework.off-heap.size: 256m
191-
volumes:
192-
- ./lib:/tmp/lib
191+
sql-client:
192+
build:
193+
dockerfile: ./fluss.Dockerfile
194+
command: bin/sql-client.sh
195+
depends_on:
196+
- jobmanager
197+
environment:
198+
- |
199+
FLINK_PROPERTIES=
200+
jobmanager.rpc.address: jobmanager
201+
rest.address: jobmanager
193202
#end
194203
```
195204

0 commit comments

Comments
 (0)