Sign inSign up

pello/mean-aws-sample

By pello

•Updated almost 10 years ago

Image
0

196

pello/mean-aws-sample repository overview

⁠Simple Node+Express for AWS

Simple Node.js sample app for AWS. Just for learning purposes.

⁠Docker building

  • Add Dockerfile
  • Add .Dockerfile

⁠Now integrated with Dockerhub

GitHub pello/node-express

⁠Commands

Use this commands: To build the image, inside the directory where Dockerfile resides type. Notice the trailing dot: `` $ docker build -t pello/mean-aws-sample .

To run the container

$ docker run -p 43000:3000 -d pello/mean-aws-sample

Get container info:

$ docker ps

Get container output:

$ docker logs

Enter the shell of a container

$ docker exec -it /bin/bash

See images with

$ docker images

Stop it with the container id

$ docker stop

Remove the image, with the image id

$ docker rmi

# Can't access from host machine?
Check what is the docker-machine ip, when docker is not running natively:

$ docker-machine ip default

# Running:

node -e "NODE_ENV=production" app.js

Following this (instructions)[http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html]

Tag summary

Content type

Image

Digest

Size

248 MB

Last updated

almost 10 years ago

docker pull pello/mean-aws-sample