I have a Docker image I want to use: https://hub.docker.com/r/xueshanf/s3fs/
The image will mount an S3 bucket for me. I think this image can be really helpful for running Maven builds that like to download the world. Here I can have a custom settings.xml point to the S3 bucket where all my external dependencies exist. My build / deploy time would dramatically go down.
There are a few caveats on how I would securely configure the container. It requires that the host has a .s3fs file containing my AWS access and secret keys. I could host the image in a private repository but that's not ideal if this is going to be a solution for all your users.
I'd love some feedback on what you think about this solution and how you could potentially add it to Bitbucket Pipelines.