hello-world-python

时间:2021-02-23 10:01:51
【文件属性】:
文件名称:hello-world-python
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-23 10:01:51
HCL Hello World(Python,Terraform) 该应用程序使用Python构建了一个简单的Dockerized“ Hello World” Web应用程序,然后将其部署到AWS Elastic Container Service。 测试脚本 build_and_push.sh build_and_push.sh脚本使用src/下定义的Python Web应用程序和根目录中的Dockerfile创建一个名为hello_world_python的Docker映像,然后将其推送到本地Docker注册表中。 为了测试脚本,您需要首先启动一个本地Docker注册表: docker run -d -p 5000:5000 --restart=always --name registry registry:2 然后,使Shell脚本可执行并运行: chmod +x scripts/b
【文件预览】:
hello-world-python-main
----terraform()
--------vars.tf(165B)
--------main.tf(849B)
--------default.tfvars(183B)
--------modules()
----Dockerfile(146B)
----src()
--------hello_world.py(994B)
----.gitignore(42B)
----README.md(3KB)
----scripts()
--------build_and_push.sh(254B)
--------push_to_ecr.sh(310B)
--------get_latest_tag.sh(146B)

网友评论

相关文章