Skip to content

Instantly share code, notes, and snippets.

@arielshaqed
Last active May 24, 2021 10:46
Show Gist options
  • Save arielshaqed/7dbb4bff53b6d36e7412142d17edd052 to your computer and use it in GitHub Desktop.
Save arielshaqed/7dbb4bff53b6d36e7412142d17edd052 to your computer and use it in GitHub Desktop.
Dockerfile for debug minio container that outputs logs

What

minio makes extracting debug logs hard. This Dockerfile builds a minio server image that will write debug logs. It is of course for debugging only.

Building

To build,

docker build -t ariels/debug-minio .

Now run it and look at the logs :-)

FROM minio/mc:latest AS mc
FROM minio/minio:edge
COPY --from=mc /bin/mc /bin/
ENTRYPOINT ["sh", "-c", "minio server /data & (sleep 1; until mc alias set root http://localhost:9000 ${MINIO_ROOT_USER:-minioadmin} ${MINIO_ROOT_PASSWORD:-minioadmin}; do sleep 1; done; mc admin trace root)"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment