Skip to content

Commit a66b15c

Browse files
authored
Python: Update docker file (#7164)
1 parent c60516b commit a66b15c

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-11
lines changed

.github/ISSUE_TEMPLATE/iceberg_bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ body:
99
description: What Apache Iceberg version are you using?
1010
multiple: false
1111
options:
12-
- "1.1.0 (latest release)"
12+
- "1.2.0 (latest release)"
13+
- "1.1.0"
1314
- "1.0.0"
1415
- "0.14.1"
1516
- "0.14.0"

python/dev/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,24 @@ RUN mkdir -p ${HADOOP_HOME} && mkdir -p ${SPARK_HOME} && mkdir -p /home/iceberg/
3737
WORKDIR ${SPARK_HOME}
3838

3939
ENV SPARK_VERSION=3.3.2
40+
ENV ICEBERG_VERSION=1.2.0
41+
ENV AWS_SDK_VERSION=2.20.18
4042

4143
RUN curl -s https://dlcdn.apache.org/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop3.tgz -o spark-${SPARK_VERSION}-bin-hadoop3.tgz \
4244
&& tar xzf spark-${SPARK_VERSION}-bin-hadoop3.tgz --directory /opt/spark --strip-components 1 \
4345
&& rm -rf spark-${SPARK_VERSION}-bin-hadoop3.tgz
4446

4547
# Download iceberg spark runtime
46-
RUN curl -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-spark-runtime-3.3_2.12/1.1.0/iceberg-spark-runtime-3.3_2.12-1.1.0.jar -Lo iceberg-spark-runtime-3.3_2.12-1.1.0.jar \
47-
&& mv iceberg-spark-runtime-3.3_2.12-1.1.0.jar /opt/spark/jars
48+
RUN curl -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-spark-runtime-3.3_2.12/${ICEBERG_VERSION}/iceberg-spark-runtime-3.3_2.12-${ICEBERG_VERSION}.jar -Lo iceberg-spark-runtime-3.3_2.12-${ICEBERG_VERSION}.jar \
49+
&& mv iceberg-spark-runtime-3.3_2.12-${ICEBERG_VERSION}.jar /opt/spark/jars
4850

4951
# Download Java AWS SDK
50-
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.17.165/bundle-2.17.165.jar -Lo bundle-2.17.165.jar \
51-
&& mv bundle-2.17.165.jar /opt/spark/jars
52+
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/${AWS_SDK_VERSION}/bundle-${AWS_SDK_VERSION}.jar -Lo bundle-${AWS_SDK_VERSION}.jar \
53+
&& mv bundle-${AWS_SDK_VERSION}.jar /opt/spark/jars
5254

5355
# Download URL connection client required for S3FileIO
54-
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/url-connection-client/2.17.165/url-connection-client-2.17.165.jar -Lo url-connection-client-2.17.165.jar \
55-
&& mv url-connection-client-2.17.165.jar /opt/spark/jars
56+
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/url-connection-client/${AWS_SDK_VERSION}/url-connection-client-${AWS_SDK_VERSION}.jar -Lo url-connection-client-${AWS_SDK_VERSION}.jar \
57+
&& mv url-connection-client-${AWS_SDK_VERSION}.jar /opt/spark/jars
5658

5759
COPY spark-defaults.conf /opt/spark/conf
5860
ENV PATH="/opt/spark/sbin:/opt/spark/bin:${PATH}"

python/dev/docker-compose-integration.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
image: python-integration
2222
container_name: pyiceberg-spark
2323
build: .
24+
networks:
25+
iceberg_net:
2426
depends_on:
2527
- rest
2628
- minio
@@ -37,15 +39,17 @@ services:
3739
- rest:rest
3840
- minio:minio
3941
rest:
40-
image: tabulario/iceberg-rest:0.2.0
42+
image: tabulario/iceberg-rest
4143
container_name: pyiceberg-rest
44+
networks:
45+
iceberg_net:
4246
ports:
4347
- 8181:8181
4448
environment:
4549
- AWS_ACCESS_KEY_ID=admin
4650
- AWS_SECRET_ACCESS_KEY=password
4751
- AWS_REGION=us-east-1
48-
- CATALOG_WAREHOUSE=s3a://warehouse/wh/
52+
- CATALOG_WAREHOUSE=s3://warehouse/
4953
- CATALOG_IO__IMPL=org.apache.iceberg.aws.s3.S3FileIO
5054
- CATALOG_S3_ENDPOINT=http://minio:9000
5155
minio:
@@ -54,6 +58,11 @@ services:
5458
environment:
5559
- MINIO_ROOT_USER=admin
5660
- MINIO_ROOT_PASSWORD=password
61+
- MINIO_DOMAIN=minio
62+
networks:
63+
iceberg_net:
64+
aliases:
65+
- warehouse.minio
5766
ports:
5867
- 9001:9001
5968
- 9000:9000
@@ -63,6 +72,8 @@ services:
6372
- minio
6473
image: minio/mc
6574
container_name: pyiceberg-mc
75+
networks:
76+
iceberg_net:
6677
environment:
6778
- AWS_ACCESS_KEY_ID=admin
6879
- AWS_SECRET_ACCESS_KEY=password
@@ -74,3 +85,5 @@ services:
7485
/usr/bin/mc policy set public minio/warehouse;
7586
tail -f /dev/null
7687
"
88+
networks:
89+
iceberg_net:

python/dev/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
environment:
2424
- MINIO_ROOT_USER=admin
2525
- MINIO_ROOT_PASSWORD=password
26+
- MINIO_DOMAIN=minio
2627
ports:
2728
- 9001:9001
2829
- 9000:9000

python/mkdocs/docs/verify-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ This will include a Minio S3 container being spun up.
9999

100100
# Cast the vote
101101

102-
Votes are cast by replying to the release candidate announcement email on the dev mailing list with either `+1`, `0`, or `-1`.
102+
Votes are cast by replying to the release candidate announcement email on the dev mailing list with either `+1`, `0`, or `-1`. For example :
103103

104-
> \[ \] +1 Release this as Apache Iceberg 1.1.0 \[ \] +0 \[ \] -1 Do not release this because…
104+
> \[ \] +1 Release this as PyIceberg 0.3.0 \[ \] +0 \[ \] -1 Do not release this because…
105105
106106
In addition to your vote, it’s customary to specify if your vote is binding or non-binding. Only members of the Project Management Committee have formally binding votes. If you’re unsure, you can specify that your vote is non-binding. To read more about voting in the Apache framework, checkout the [Voting](https://www.apache.org/foundation/voting.html) information page on the Apache foundation’s website.

0 commit comments

Comments
 (0)