I struggle to deploy with docker images with registry.
I followed the article how to deploy from container images, the after the build process it seems to fail.
I tried it with several projects and different codes, the end point was the same.
Unable to get build logs for component "react-nginx-frontend"*
*my-docker-image-name
I tried it with django, nextjs and react. All projects works on my local machine as expected with docker-compose.
To isolate my problem I clone docker compose git projects, here react/gninx
Actions I took:
console.log("Hello, world!");
doctl registry login, tag the image then push it.
In the application I then select resource as registry, and then select the image and tag.
I then click Next until resources is created.
Once created the desploy-logs shows:
Unable to get build logs for component "react-nginx-frontend"
the child image shows:
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: using the "epoll" event method
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: nginx/1.23.4
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: OS: Linux 4.4.0
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
[2023-04-20 23:15:43] 2023/04/20 23:15:43 [notice] 1#1: start worker processes
Any tip would be highly appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
As there are no messages in your deploy log, it sounds like the problem might be the App Platform health checks.
Health checks ensure that your app is communicating with “healthy” containers in App Platform. The load balancer for App Platform only direct traffic to containers that passed the health checks. If the container fails the health checks, App Platform’s load balancer will remove the container from rotation until the container passes the health checks.
You would need to make sure that the
EXPOSE
port in your Dockerfile matches the port defined in your App Platform and that the health check also matches that.Let me know how it goes!
Best,
Bobby