Public Repository

Last pushed: 6 months ago
Short Description
Deploy Node.js project To AWS Environment With Bitbucket Pipelines
Full Description

Deploy Node.js project To AWS Environment With Bitbucket Pipelines

This is a basic image to deploy Node.js project to AWS Environment with Bitbucket Pipelines.
It is based on node:4.6 docker image.

Included in this image:

  • AWS CLI 1.11.12 with Python 2.7.9
  • zip
  • git

Dockerfile

AWS Lambda Sample Deployment Script

- echo BITBUCKET_BRANCH $BITBUCKET_BRANCH
- echo BITBUCKET_COMMIT $BITBUCKET_COMMIT
- echo AWS_ACCESS_KEY_ID $AWS_ACCESS_KEY_ID
- npm install
- zip -r file.zip . -x '*.git*'
- aws --region ap-northeast-1 lambda update-function-code --function-name xxxxx --zip-file fileb://./file.zip
Docker Pull Command
Owner
vitolimandibhrata

Comments (1)
ahelord
6 months ago

Hello, I'm Leonardo Rodriguez, I'm a Systems Engineer from Colombia, this container is amazing, I have a question like I can get the same image but running node 6.6.0 and postgresql 9.4 I have something in my repo https://hub.docker.com/r/ahelord/node-postgresql/ , you could generate a docker contender with this, I would appreciate your help or let me know what steps to follow.