Opinie (Building a DevOps Pipeline)

65996 opinii

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. · Sprawdzono 27 dni temu

Josimar M. · Sprawdzono 27 dni temu

Tolulope E. · Sprawdzono 28 dni temu

Amy H. · Sprawdzono 28 dni temu

Rohit K. · Sprawdzono 28 dni temu

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. · Sprawdzono 28 dni temu

Eduardo X. · Sprawdzono 28 dni temu

Bogdan D. · Sprawdzono 28 dni temu

Malith M. · Sprawdzono 28 dni temu

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. · Sprawdzono 28 dni temu

Rushi P. · Sprawdzono 28 dni temu

Tapas B. · Sprawdzono 28 dni temu

Harshit S. · Sprawdzono 28 dni temu

Manish K. · Sprawdzono 28 dni temu

Bogdan D. · Sprawdzono 28 dni temu

Bünny Y. · Sprawdzono 28 dni temu

Thomas D. · Sprawdzono 28 dni temu

yusuf A. · Sprawdzono 28 dni temu

Julien L. · Sprawdzono 28 dni temu

saikumar G. · Sprawdzono 28 dni temu

21 S. · Sprawdzono 28 dni temu

Yuvashree S. · Sprawdzono 28 dni temu

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. · Sprawdzono 28 dni temu

Shantharama P. · Sprawdzono 28 dni temu

sridhar n. · Sprawdzono 29 dni temu

Nie gwarantujemy, że publikowane opinie pochodzą od konsumentów, którzy dane produkty kupili lub ich używali. Google nie weryfikuje opinii.