diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-11-08 01:10:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-08 01:10:33 -0800 |
| commit | 2a05af2e14741540cad00a410f8e851f863628c7 (patch) | |
| tree | aeb5595995a4c118ff8f81d8aa7210afa0e54c00 /docker/Dockerfile.e2e | |
| parent | 5fef4145a4cdd003ff8a7156413a28f923e8175d (diff) | |
| download | seaweedfs-2a05af2e14741540cad00a410f8e851f863628c7.tar.xz seaweedfs-2a05af2e14741540cad00a410f8e851f863628c7.zip | |
docker: fix /data ownership and permission (#7451)
* docker: fix /data ownership and permission
* chown if not owned by seaweed user
* fix github tests
* comments
* fix the unquoted variables in the case pattern matching
* Update docker/entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update docker/entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update entrypoint.sh
* Update entrypoint.sh
* Update docker/entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Diffstat (limited to 'docker/Dockerfile.e2e')
| -rw-r--r-- | docker/Dockerfile.e2e | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/Dockerfile.e2e b/docker/Dockerfile.e2e index 3ac60cb11..1c1710af4 100644 --- a/docker/Dockerfile.e2e +++ b/docker/Dockerfile.e2e @@ -3,6 +3,10 @@ FROM ubuntu:22.04 LABEL author="Chris Lu" # Use faster mirrors and optimize package installation +# Note: This e2e test image intentionally runs as root for simplicity and compatibility. +# Production images (Dockerfile.go_build) use proper user isolation with su-exec. +# For testing purposes, running as root avoids permission complexities and dependency +# on Alpine-specific tools like su-exec (not available in Ubuntu repos). RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ --no-install-recommends \ @@ -10,6 +14,7 @@ RUN apt-get update && \ curl \ fio \ fuse \ + ca-certificates \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /tmp/* \ @@ -18,7 +23,7 @@ RUN mkdir -p /etc/seaweedfs /data/filerldb2 COPY ./weed /usr/bin/ COPY ./filer.toml /etc/seaweedfs/filer.toml -COPY ./entrypoint.sh /entrypoint.sh +COPY ./entrypoint_e2e.sh /entrypoint.sh # volume server grpc port EXPOSE 18080 |
