[英]Need to deploy Node.js docker image to AWS Elastic Beanstalk using bitbucket-pipeline
I need to deploy a Node.js docker image from dockerhub to Elastic Beanstalk.我需要将 Node.js docker 映像从 dockerhub 部署到 Elastic Beanstalk。 I am building the image and then pushing it to the hub.docker.com now I want to deploy the image from hub.docker.com to the AWS Elastic Beanstalk using bitbucket-pipeline.
我正在构建映像,然后将其推送到 hub.docker.com 现在我想使用 bitbucket-pipeline 将映像从 hub.docker.com 部署到 AWS Elastic Beanstalk。 The pipline is not building the image and pushing it to hub.docker.com, I want now to deploy the image using the pipeline.
管道没有构建映像并将其推送到 hub.docker.com,我现在想使用管道部署映像。
Just use the following as the top line for the bitbucket-pipeline.yml:只需使用以下作为 bitbucket-pipeline.yml 的第一行:
image: node # or whatever is the image name you built on docker hub
In the scripts section, then you need to run the docker-compose commands to build and push the image.在脚本部分,您需要运行 docker-compose 命令来构建和推送映像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.