when I deploy the render-examples/mino repo, minio starts but is not accessible.
Here are the log messages.
Dec 9 10:20:23 AM API: http://10.104.185.142:10000 http://127.0.0.1:10000
Dec 9 10:20:23 AM
Dec 9 10:20:23 AM Console: http://10.104.185.142:40249 http://127.0.0.1:40249
Dec 9 10:20:23 AM
Dec 9 10:20:23 AM Documentation: https://docs.min.io
Dec 9 10:20:23 AM
Dec 9 10:20:23 AM WARNING: Console endpoint is listening on a dynamic port (40249), please use --console-address ":PORT" to choose a static port.
Dec 9 10:20:23 AM WARNING: Detected default credentials 'minioadmin:minioadmin', we recommend that you change these values with 'MINIO_ROOT_USER' and 'MINIO_ROOT_PASSWORD' environment variables
Note, the repo also has 2 pull requests that Render has not yet approved. I believe at least one of them when be a problem once I get this issue resolved.
OK, it looks like the issue is just that the example repo is out of date as Minio has changed a few things. I have created a pull request with the fixes. Can someone at Render review and merge in.
I stand corrected. it works locally but Render.com doesnāt seem to see the fixes. I updated the Render web service to use the branch with the fixes but I still get the same errors.
Hi @anuaimi, thank you for your help with those suggestions. I wanted to update you that the pull request is under review and should be merged soon. Let us know if there is anything else we can do.
#...
- type: web
name: minio
env: docker
dockerfilePath: ./minio/Dockerfile
dockerContext: ./minio/ # also tried just using '.'
disk:
name: data
mountPath: /data
healthCheckPath: /minio/health/live
envVars:
- key: MINIO_ROOT_USER
generateValue: true
- key: MINIO_ROOT_PASSWORD
generateValue: true
- key: PORT
value: 10000
#...
entrypoint.sh
#!/usr/bin/env sh
# wrapper for docker entrypoint that takes into account the PORT env var
exec docker-entrypoint.sh server --console-address ":10000" --address ":9000" /data
and Dockerfile
FROM minio/minio:latest
COPY entrypoint.sh /opt/render/entrypoint.sh
ENTRYPOINT ["/opt/render/entrypoint.sh"]
I donāt see any major differences but there are a number of minor differences. On the surface none are obvious issues so Iād just make the files and structure exactly match my repo (or the updated official one) and see if it works.
If it does, you can slowly revert the changes to isolate which one is causing issues.
If it doesnāt, itās almost like the container isnāt even being built. You should see log messages the 1st time you change a file. Iām new to Render so not sure under what circumstances that might happen.
ah, I should clarify - the container gets built. I do see the initial build, I can launch shell in the container and have inspected that the entrypoint file is getting added to the right place. But in terms of whatās erroring on executing the actual container after creation, thereās no logs. Just suddenly a failed deploy status.
Hereās the full repo for giggles since thereās nothing yet special about this build.
Good morning. I took a look at your repo and tried to run minio locally. The issue is that your entry point.sh is not marked as an executable. If you do chmod +x entrypoint.sh and then rebuild your minio container it should run.
Jokes aside, thanks! That was absolutely the issue. I went ahead and added this line in the Dockerfile after the copy bits as a way to āfuture proofā my forgetfulness.
RUN chmod +x /opt/render/entrypoint.sh
Saw that tip from here