Skip to content

Commit baf939f

Browse files
leejayweiRolatZhang
authored andcommitted
Adaptive yinglong image (apache#598)
Co-authored-by: luoping.zhang <[email protected]>
1 parent ff8933c commit baf939f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

bin/docker-image-tool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function create_dev_build_context {(
107107
fi
108108
done
109109

110-
for other in bin sbin data; do
110+
for other in bin sbin data hive_1_2_2; do
111111
cp -r "$other" "$BASE_CTX/$other"
112112
done
113113

resource-managers/kubernetes/docker/src/main/dockerfiles/spark/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ARG spark_uid=root
2828
# docker build -t spark:latest -f kubernetes/dockerfiles/spark/Dockerfile .
2929

3030
RUN set -ex && \
31+
cat /etc/resolv.conf && \
3132
sed -i 's/http:\/\/deb.\(.*\)/https:\/\/deb.\1/g' /etc/apt/sources.list && \
3233
apt-get update && \
3334
ln -s /lib /lib64 && \
@@ -50,6 +51,7 @@ COPY kubernetes/dockerfiles/spark/decom.sh /opt/
5051
COPY examples /opt/spark/examples
5152
COPY kubernetes/tests /opt/spark/tests
5253
COPY data /opt/spark/data
54+
COPY hive_1_2_2 /opt/spark/hive_1_2_2
5355

5456
ENV SPARK_HOME /opt/spark
5557

resource-managers/kubernetes/docker/src/main/dockerfiles/spark/Dockerfile.java17

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ARG spark_uid=185
2828
# docker build -t spark:latest -f kubernetes/dockerfiles/spark/Dockerfile .
2929

3030
RUN set -ex && \
31+
cat /etc/resolv.conf && \
3132
apt-get update && \
3233
ln -s /lib /lib64 && \
3334
apt install -y bash tini libc6 libpam-modules krb5-user libnss3 procps openjdk-17-jre && \
@@ -49,6 +50,7 @@ COPY kubernetes/dockerfiles/spark/decom.sh /opt/
4950
COPY examples /opt/spark/examples
5051
COPY kubernetes/tests /opt/spark/tests
5152
COPY data /opt/spark/data
53+
COPY hive_1_2_2 /opt/spark/hive_1_2_2
5254

5355
ENV SPARK_HOME /opt/spark
5456

0 commit comments

Comments
 (0)