diff --git a/Dockerfile.source b/Dockerfile.source index 280d606d8..32f7e6559 100644 --- a/Dockerfile.source +++ b/Dockerfile.source @@ -83,6 +83,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ # 3) copy full sources (this is the main cache invalidation point) COPY . . +# Generate static files + +RUN ./rustfs/scripts/static.sh + # Cargo build configuration for lean release artifacts ENV CARGO_NET_GIT_FETCH_WITH_CLI=true \ CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \ diff --git a/README.md b/README.md index dbc5f388b..afb3f151a 100644 --- a/README.md +++ b/README.md @@ -118,12 +118,24 @@ The RustFS container runs as a non-root user `rustfs` (UID `10001`). If you run docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:1.0.0-alpha.76 ``` +If you use [podman](https://github.com/containers/podman) instead of docker, you can install the RustFS with the below command + +```bash + podman run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest +``` + You can also use Docker Compose. Using the `docker-compose.yml` file in the root directory: ```bash docker compose --profile observability up -d ``` +Similarly, you can run the command with podman + +```bash +podman compose --profile observability up -d +``` + **NOTE**: We recommend reviewing the `docker-compose.yaml` file before running. It defines several services including Grafana, Prometheus, and Jaeger, which are helpful for RustFS observability. If you wish to start Redis or Nginx containers, you can specify the corresponding profiles. ### 3\. Build from Source (Option 3) - Advanced Users