리뷰 Cloud Run으로 DevOps 파이프라인 빌드개
리뷰 68016개
The “Deploy Container” option has been deprecated, but the lab instructions haven’t been updated yet. In addition, there seems to be an issue with the Python Flask app—it isn’t accessible after deployment. if __name__ == "__main__": # app.run(host='0.0.0.0', port=8080, debug=True, threaded=True) port = int(os.environ.get("PORT", 8080)) # fallback to 8080 locally app.run(host='0.0.0.0', port=port, debug=True, threaded=True) And create firewall rule to allow HTTP port 80.
Wenjing L. · 5개월 전에 리뷰됨
Josimar M. · 5개월 전에 리뷰됨
Tolulope E. · 5개월 전에 리뷰됨
Amy H. · 5개월 전에 리뷰됨
Rohit K. · 5개월 전에 리뷰됨
This is the comment that you're looking for In case you cannot connect to VM after you created it with Docker, is due to Dockerfile opening port 80, but the Flask app runs on port 8080. So, ssh into VM, change to sudo user with sudo su -, delete the running container, create another with port binding: docker run -d -p 80:8080 <image_name>:<image_tag> . Eventually, exec into container and run again the flash app with python3 main.py. After this, do not close the ssh window, put it aside. Repeat also this step for the second VM. Good Luck
Laurentiu B. · 5개월 전에 리뷰됨
Eduardo X. · 5개월 전에 리뷰됨
Bogdan D. · 5개월 전에 리뷰됨
Malith M. · 5개월 전에 리뷰됨
vm instance logged "network interface disabled" and TCP connections to the flask instance simply hung. I tried asking the gemini for cloud thing to help, and it complained tooling issues prevented it from checking compute engine instances, so I got no insight from there, either.
Michael M. · 5개월 전에 리뷰됨
Rushi P. · 5개월 전에 리뷰됨
Tapas B. · 5개월 전에 리뷰됨
Harshit S. · 5개월 전에 리뷰됨
Manish K. · 5개월 전에 리뷰됨
Bogdan D. · 5개월 전에 리뷰됨
Bünny Y. · 5개월 전에 리뷰됨
Thomas D. · 5개월 전에 리뷰됨
yusuf A. · 5개월 전에 리뷰됨
Julien L. · 5개월 전에 리뷰됨
saikumar G. · 5개월 전에 리뷰됨
21 S. · 5개월 전에 리뷰됨
Yuvashree S. · 5개월 전에 리뷰됨
The “Deploy Container” option has been deprecated, but the lab instructions haven’t been updated yet. In addition, there seems to be an issue with the Python Flask app—it isn’t accessible after deployment. if __name__ == "__main__": # app.run(host='0.0.0.0', port=8080, debug=True, threaded=True) port = int(os.environ.get("PORT", 8080)) # fallback to 8080 locally app.run(host='0.0.0.0', port=port, debug=True, threaded=True)
Wenjing L. · 5개월 전에 리뷰됨
Shantharama P. · 5개월 전에 리뷰됨
sridhar n. · 5개월 전에 리뷰됨
Google은 게시된 리뷰가 제품을 구매 또는 사용한 소비자에 의해 작성되었음을 보증하지 않습니다. 리뷰는 Google의 인증을 거치지 않습니다.