diff --git a/Dockerfile b/Dockerfile index d45af5c8..616a6ee1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -82,9 +82,8 @@ ENV RUSTFS_ADDRESS=":9000" \ RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \ RUSTFS_VOLUMES="/data" \ RUST_LOG="warn" \ - RUSTFS_OBS_LOG_DIRECTORY="/logs" \ - RUSTFS_SINKS_FILE_PATH="/logs" - + RUSTFS_OBS_LOG_DIRECTORY="/logs" + EXPOSE 9000 9001 VOLUME ["/data", "/logs"] diff --git a/Dockerfile.source b/Dockerfile.source index 07f26c57..f2825a37 100644 --- a/Dockerfile.source +++ b/Dockerfile.source @@ -167,7 +167,6 @@ ENV RUSTFS_ADDRESS=":9000" \ RUSTFS_VOLUMES="/data" \ RUST_LOG="warn" \ RUSTFS_OBS_LOG_DIRECTORY="/logs" \ - RUSTFS_SINKS_FILE_PATH="/logs" \ RUSTFS_USERNAME="rustfs" \ RUSTFS_GROUPNAME="rustfs" \ RUSTFS_UID="1000" \ diff --git a/README.md b/README.md index 80998531..16a6b4bd 100644 --- a/README.md +++ b/README.md @@ -84,15 +84,20 @@ To get started with RustFS, follow these steps: 2. **Docker Quick Start (Option 2)​​** +RustFS container run as non-root user `rustfs` with id `1000`, if you run docker with `-v` to mount host directory into docker container, please make sure the owner of host directory has been changed to `1000`, otherwise you will encounter permission denied error. + ```bash # create data and logs directories mkdir -p data logs - # using latest alpha version - docker run -d -p 9000:9000 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:alpha + # change the owner of those two ditectories + chown -R 1000:1000 data logs - # Specific version - docker run -d -p 9000:9000 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:1.0.0.alpha.45 + # using latest version + docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest + + # using specific version + docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:1.0.0.alpha.68 ``` For docker installation, you can also run the container with docker compose. With the `docker-compose.yml` file under diff --git a/helm/rustfs/templates/configmap.yaml b/helm/rustfs/templates/configmap.yaml index 06b5e3ce..77412972 100644 --- a/helm/rustfs/templates/configmap.yaml +++ b/helm/rustfs/templates/configmap.yaml @@ -6,7 +6,6 @@ data: RUSTFS_ADDRESS: {{ .Values.config.rustfs.address | quote }} RUSTFS_CONSOLE_ADDRESS: {{ .Values.config.rustfs.console_address | quote }} RUSTFS_OBS_LOG_DIRECTORY: {{ .Values.config.rustfs.obs_log_directory | quote }} - RUSTFS_SINKS_FILE_PATH: {{ .Values.config.rustfs.sinks_file_path | quote }} RUSTFS_CONSOLE_ENABLE: {{ .Values.config.rustfs.console_enable | quote }} RUSTFS_LOG_LEVEL: {{ .Values.config.rustfs.log_level | quote }} {{- if eq (int .Values.replicaCount) 4 }} diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index 68b18fd0..124f1b04 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -32,7 +32,6 @@ config: log_level: "debug" rust_log: "debug" console_enable: "true" - sinks_file_path: "/logs" obs_log_directory: "/logs" # This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/