简体   繁体   English

需要使用 bitbucket-pipeline 将 Node.js docker 镜像部署到 AWS Elastic Beanstalk

[英]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.

相关问题 Node.js部署-AWS Elastic Beanstalk - Node.js deploy - AWS Elastic Beanstalk 如何将node.js应用程序部署到AWS Elastic Beanstalk中 - How to deploy a node.js app into AWS Elastic Beanstalk 将node.js应用程序部署到弹性beantalk(使用express) - Deploy node.js application to elastic beanstalk (using express) AWS Elastic Beanstalk,无法安装在Bitbucket上托管的node.js私有模块 - AWS Elastic Beanstalk , cannot install node.js private module hosted on bitbucket 如何在AWS ec2或Elastic Beanstalk上使用MongoDb部署我的Node.js应用程序? - How to deploy my Node.js Application with MongoDb on AWS ec2 or Elastic Beanstalk? 将Node.js应用程序部署到包含静态资产的AWS Elastic Beanstalk - Deploy Node.js app to AWS elastic beanstalk that contains static assets 直接从 Bitbucket 部署到 AWS Elastic Beanstalk - deploy directly from Bitbucket to AWS Elastic Beanstalk Node.js 应用程序不会部署在 AWS Elastic BeanStalk 上,可能是因为缺少 PostgreSQL 安装 - Node.js app won't deploy on AWS Elastic BeanStalk possibly due to missing PostgreSQL install 如何将Node.js WebSocket服务器部署到Amazon Elastic Beanstalk? - How to deploy a Node.js WebSocket server to Amazon Elastic Beanstalk? Node.js和Docker- Elastic Beanstalk 502错误网关 - Node.js and Docker- Elastic Beanstalk 502 Bad Gateway
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM