1
+ # ##############################################################################
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ # ##############################################################################
18
+
19
+ # ##############################################################################
20
+ # Build Flink images with configured S3 plugin
21
+ # ##############################################################################
22
+
23
+ FROM flink:1.10.0-scala_2.11
24
+
25
+ RUN mkdir /opt/flink/plugins/s3; \
26
+ mv /opt/flink/opt/flink-s3-fs-hadoop-1.10.0.jar /opt/flink/plugins/s3; \
27
+ echo "s3.access-key: sql-demo" >> /opt/flink/conf/flink-conf.yaml; \
28
+ echo "s3.secret-key: demo-sql" >> /opt/flink/conf/flink-conf.yaml; \
29
+ echo "fs.s3a.access.key: sql-demo" >> /opt/flink/conf/flink-conf.yaml; \
30
+ echo "fs.s3a.secret.key: demo-sql" >> /opt/flink/conf/flink-conf.yaml; \
31
+ echo "fs.s3a.endpoint: http://minio:9000" >> /opt/flink/conf/flink-conf.yaml; \
32
+ echo "fs.s3a.path.style.access: true" >> /opt/flink/conf/flink-conf.yaml;
0 commit comments