From 7156dbc958ddf004fb9ac3ae2583ecd2b8ecabda Mon Sep 17 00:00:00 2001 From: Robbert van Waveren Date: Mon, 23 Dec 2024 11:51:00 +0100 Subject: [PATCH] add home dir for spark user --- 3.5.4/scala2.12-java11-ubuntu/Dockerfile | 2 +- 3.5.4/scala2.12-java17-ubuntu/Dockerfile | 2 +- 4.0.0-preview1/scala2.13-java17-ubuntu/Dockerfile | 2 +- 4.0.0-preview1/scala2.13-java21-ubuntu/Dockerfile | 2 +- 4.0.0-preview2/scala2.13-java17-ubuntu/Dockerfile | 2 +- 4.0.0-preview2/scala2.13-java21-ubuntu/Dockerfile | 2 +- Dockerfile.template | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/3.5.4/scala2.12-java11-ubuntu/Dockerfile b/3.5.4/scala2.12-java11-ubuntu/Dockerfile index b5d6a4a..1d1d6c2 100644 --- a/3.5.4/scala2.12-java11-ubuntu/Dockerfile +++ b/3.5.4/scala2.12-java11-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:11-jre-focal ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/3.5.4/scala2.12-java17-ubuntu/Dockerfile b/3.5.4/scala2.12-java17-ubuntu/Dockerfile index 4125654..ae4daa7 100644 --- a/3.5.4/scala2.12-java17-ubuntu/Dockerfile +++ b/3.5.4/scala2.12-java17-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:17-jammy ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/4.0.0-preview1/scala2.13-java17-ubuntu/Dockerfile b/4.0.0-preview1/scala2.13-java17-ubuntu/Dockerfile index 9ee76f6..46c7683 100644 --- a/4.0.0-preview1/scala2.13-java17-ubuntu/Dockerfile +++ b/4.0.0-preview1/scala2.13-java17-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:17-jammy ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/4.0.0-preview1/scala2.13-java21-ubuntu/Dockerfile b/4.0.0-preview1/scala2.13-java21-ubuntu/Dockerfile index 333324c..36347a3 100644 --- a/4.0.0-preview1/scala2.13-java21-ubuntu/Dockerfile +++ b/4.0.0-preview1/scala2.13-java21-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:21-jammy ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/4.0.0-preview2/scala2.13-java17-ubuntu/Dockerfile b/4.0.0-preview2/scala2.13-java17-ubuntu/Dockerfile index 051acb3..b0cc431 100644 --- a/4.0.0-preview2/scala2.13-java17-ubuntu/Dockerfile +++ b/4.0.0-preview2/scala2.13-java17-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:17-jammy ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/4.0.0-preview2/scala2.13-java21-ubuntu/Dockerfile b/4.0.0-preview2/scala2.13-java21-ubuntu/Dockerfile index f2ec53d..7bfe4ae 100644 --- a/4.0.0-preview2/scala2.13-java21-ubuntu/Dockerfile +++ b/4.0.0-preview2/scala2.13-java21-ubuntu/Dockerfile @@ -19,7 +19,7 @@ FROM eclipse-temurin:21-jammy ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \ diff --git a/Dockerfile.template b/Dockerfile.template index c02033a..56e34ec 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -19,7 +19,7 @@ FROM {{ BASE_IMAGE }} ARG spark_uid=185 RUN groupadd --system --gid=${spark_uid} spark && \ - useradd --system --uid=${spark_uid} --gid=spark spark + useradd -m --system --uid=${spark_uid} --gid=spark spark RUN set -ex; \ apt-get update; \