Skip to content

Commit 65fc2d7

Browse files
Koenraad VerheydenJoshua Nelson
authored andcommitted
Override entrypoint of minio to make 'rust-docs-rs' bucket #463
docs.rs expects there to be a bucket 'rust-docs-rs', the minio Docker image does not provide a nice way to launch with a default bucket. As a workaround, we have to override the entrypoint to do some work before starting the minio server. When the minio server is launched with a directory that is not empty, it will interpret the directories present as buckets it needs to create. So by adding an empty directory 'rust-docs-rs', we can trick minio in creating a similarly named bucket. This solution is a mixture of the following comments: - minio/minio#4769 (comment) - minio/minio#4769 (comment)
1 parent 84a1f7a commit 65fc2d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ services:
2828
POSTGRES_PASSWORD: password
2929
s3:
3030
image: minio/minio
31-
command: server /data
31+
entrypoint: >
32+
/bin/sh -c "
33+
mkdir /data/rust-docs-rs;
34+
minio server /data;
35+
"
3236
ports:
3337
- "9000:9000"
3438
volumes:

0 commit comments

Comments
 (0)