mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 03:46:37 +00:00
delete sink file path env and update readme file with container user change (#852)
* update container user change in readme file * delete sink file path env vars --------- Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
+2
-3
@@ -82,9 +82,8 @@ ENV RUSTFS_ADDRESS=":9000" \
|
|||||||
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
|
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
|
||||||
RUSTFS_VOLUMES="/data" \
|
RUSTFS_VOLUMES="/data" \
|
||||||
RUST_LOG="warn" \
|
RUST_LOG="warn" \
|
||||||
RUSTFS_OBS_LOG_DIRECTORY="/logs" \
|
RUSTFS_OBS_LOG_DIRECTORY="/logs"
|
||||||
RUSTFS_SINKS_FILE_PATH="/logs"
|
|
||||||
|
|
||||||
EXPOSE 9000 9001
|
EXPOSE 9000 9001
|
||||||
|
|
||||||
VOLUME ["/data", "/logs"]
|
VOLUME ["/data", "/logs"]
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ ENV RUSTFS_ADDRESS=":9000" \
|
|||||||
RUSTFS_VOLUMES="/data" \
|
RUSTFS_VOLUMES="/data" \
|
||||||
RUST_LOG="warn" \
|
RUST_LOG="warn" \
|
||||||
RUSTFS_OBS_LOG_DIRECTORY="/logs" \
|
RUSTFS_OBS_LOG_DIRECTORY="/logs" \
|
||||||
RUSTFS_SINKS_FILE_PATH="/logs" \
|
|
||||||
RUSTFS_USERNAME="rustfs" \
|
RUSTFS_USERNAME="rustfs" \
|
||||||
RUSTFS_GROUPNAME="rustfs" \
|
RUSTFS_GROUPNAME="rustfs" \
|
||||||
RUSTFS_UID="1000" \
|
RUSTFS_UID="1000" \
|
||||||
|
|||||||
@@ -84,15 +84,20 @@ To get started with RustFS, follow these steps:
|
|||||||
|
|
||||||
2. **Docker Quick Start (Option 2)**
|
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
|
```bash
|
||||||
# create data and logs directories
|
# create data and logs directories
|
||||||
mkdir -p data logs
|
mkdir -p data logs
|
||||||
|
|
||||||
# using latest alpha version
|
# change the owner of those two ditectories
|
||||||
docker run -d -p 9000:9000 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:alpha
|
chown -R 1000:1000 data logs
|
||||||
|
|
||||||
# Specific version
|
# using latest version
|
||||||
docker run -d -p 9000:9000 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:1.0.0.alpha.45
|
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
|
For docker installation, you can also run the container with docker compose. With the `docker-compose.yml` file under
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ data:
|
|||||||
RUSTFS_ADDRESS: {{ .Values.config.rustfs.address | quote }}
|
RUSTFS_ADDRESS: {{ .Values.config.rustfs.address | quote }}
|
||||||
RUSTFS_CONSOLE_ADDRESS: {{ .Values.config.rustfs.console_address | quote }}
|
RUSTFS_CONSOLE_ADDRESS: {{ .Values.config.rustfs.console_address | quote }}
|
||||||
RUSTFS_OBS_LOG_DIRECTORY: {{ .Values.config.rustfs.obs_log_directory | 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_CONSOLE_ENABLE: {{ .Values.config.rustfs.console_enable | quote }}
|
||||||
RUSTFS_LOG_LEVEL: {{ .Values.config.rustfs.log_level | quote }}
|
RUSTFS_LOG_LEVEL: {{ .Values.config.rustfs.log_level | quote }}
|
||||||
{{- if eq (int .Values.replicaCount) 4 }}
|
{{- if eq (int .Values.replicaCount) 4 }}
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ config:
|
|||||||
log_level: "debug"
|
log_level: "debug"
|
||||||
rust_log: "debug"
|
rust_log: "debug"
|
||||||
console_enable: "true"
|
console_enable: "true"
|
||||||
sinks_file_path: "/logs"
|
|
||||||
obs_log_directory: "/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/
|
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
|
||||||
|
|||||||
Reference in New Issue
Block a user