Skip to content

Commit 37ef810

Browse files
committed
switch from minio to RustFS for local & CI testing
1 parent 9a8945b commit 37ef810

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎docker-compose.yml‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,23 @@ services:
240240
test: pg_isready --username cratesfyi
241241

242242
s3:
243-
image: minio/minio
244-
entrypoint: >
245-
/bin/sh -c "
246-
mkdir -p /data/rust-docs-rs;
247-
minio server /data --console-address ":9001";
248-
"
243+
image: rustfs/rustfs:latest
244+
command: /data
249245
ports:
250246
- "127.0.0.1:9000:9000"
251247
- "127.0.0.1:9001:9001"
252248
volumes:
253-
- minio-data:/data
249+
- rustfs-data:/data
254250
environment:
255-
MINIO_ROOT_USER: cratesfyi
256-
MINIO_ROOT_PASSWORD: secret_key
251+
RUSTFS_ACCESS_KEY: cratesfyi
252+
RUSTFS_SECRET_KEY: secret_key
253+
RUSTFS_ADDRESS: :9000
254+
RUSTFS_CONSOLE_ADDRESS: :9001
255+
RUSTFS_CONSOLE_ENABLE: true
256+
RUSTFS_OBS_LOGGER_LEVEL: error
257257
healthcheck:
258258
<<: *healthcheck-interval
259-
test: mc ready local
259+
test: curl --fail http://localhost:9000/health
260260

261261
opentelemetry:
262262
build:
@@ -278,6 +278,7 @@ services:
278278
volumes:
279279
postgres-data: {}
280280
minio-data: {}
281+
rustfs-data: {}
281282
crates-io-index: {}
282283
rustwide-builder-a: {}
283284
rustwide-builder-b: {}

0 commit comments

Comments
 (0)