Skip to content

Commit

Permalink
Upgrade MinIO image version (#3541)
Browse files Browse the repository at this point in the history
On top of that addressing MinIO warning:
- setup ulimits
- use of static console port
- do not use deprecated argument names

With regard to static ports this is related to a change MinIO introduced in RELEASE.2021-07-08T01-15-01Z where the console was embedded into the server itself. For more details visit: https://docs.min.io/minio/baremetal/console/minio-console.html

We could let the port be assigned dynamically, however, when we set it statically it can give user an option to make use of the console web UI for MinIO troubleshooting (though I think the ports still need to be exported in this case).

Closes #3539

Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
  • Loading branch information
lukas-vlcek authored Jul 12, 2022
1 parent 1945119 commit 9af3407
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
6 changes: 3 additions & 3 deletions test/fixtures/minio-fixture/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM minio/minio:RELEASE.2019-01-23T23-18-58Z
FROM minio/minio:RELEASE.2022-06-25T15-50-16Z

ARG bucket
ARG accessKey
ARG secretKey

RUN mkdir -p /minio/data/${bucket}
ENV MINIO_ACCESS_KEY=${accessKey}
ENV MINIO_SECRET_KEY=${secretKey}
ENV MINIO_ROOT_USER=${accessKey}
ENV MINIO_ROOT_PASSWORD=${secretKey}
36 changes: 24 additions & 12 deletions test/fixtures/minio-fixture/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ services:
accessKey: "access_key"
secretKey: "secret_key"
dockerfile: Dockerfile
ulimits:
nofile:
hard: 4096
soft: 4096
ports:
- "9000"
command: ["server", "/minio/data"]
command: ["server", "--console-address", ":9001", "/minio/data"]
minio-fixture-other:
build:
context: .
Expand All @@ -19,17 +23,25 @@ services:
accessKey: "access_key"
secretKey: "secret_key"
dockerfile: Dockerfile
ulimits:
nofile:
hard: 4096
soft: 4096
ports:
- "9000"
command: ["server", "/minio/data"]
command: ["server", "--console-address", ":9001", "/minio/data"]
minio-fixture-for-snapshot-tool:
build:
context: .
args:
bucket: "bucket"
accessKey: "sn_tool_access_key"
secretKey: "sn_tool_secret_key"
dockerfile: Dockerfile
ports:
- "9000"
command: ["server", "/minio/data"]
build:
context: .
args:
bucket: "bucket"
accessKey: "sn_tool_access_key"
secretKey: "sn_tool_secret_key"
dockerfile: Dockerfile
ulimits:
nofile:
hard: 4096
soft: 4096
ports:
- "9000"
command: ["server", "--console-address", ":9001", "/minio/data"]

0 comments on commit 9af3407

Please sign in to comment.