I would like to build a minio docker container for integration test purposes.
I would like to do the following in my Dockerfile.
- Create the minio container
- Create a test bucket
- Copy a small amount of test data into a test bucket
- Start the minio service
Test Data
./test-data/foo.txt
./test-data/bar.txt
FROM minio/minio
RUN mkdir -p /buckets/my-bucket
COPY test-data /buckets/my-bucket/test-data"
EXPOSE 9000 9001
CMD [ "minio", "server", "/buckets", "--address", ":9000", "--console-address", ":9001" ]
I know that I could run mc in a separate container to populate my bucket, but that requires a little bit of orchestration.
Is there a way that I could accomplish these steps in a Dockerfile?