Skip to content

Conversation

@Starefossen
Copy link
Member

A simple guide to show the user how to get a Node.js application running in a Docker container using the official Docker Image for Node.js. It assumes a working installation of Docker and rootamentary understanding of how a Node.js application is structured.

  • short intro to Docker?
  • create a simple Node.js web application
  • build a Docker Image for the application
  • run the Docker Image as a container
  • where to get help?

This is based on the Node.js Web App guide at doc.docker.com.

// cc @nodejs/docker

@fhemberger
Copy link
Contributor

Nice, looking forward to it!

@ghost
Copy link

ghost commented Nov 18, 2015

added some minor nitpicks, but otherwise it looks nice

@rnsloan
Copy link
Contributor

rnsloan commented Nov 18, 2015

Worth mentioning towards the bottom that if you want to enter the container to take a look around you can with the exec command docker exec -it <container id> bash ?

@retrohacker
Copy link

This is super slick @Starefossen :-)

I have a similar writeup here for both Docker and docker-compose: https://nodesource.com/blog/dockerizing-your-nodejs-applications
https://nodesource.com/blog/dockerizing-your-nodejs-infrastructure

@retrohacker
Copy link

I have been thinking about turning this into a blog post for a while. Perhaps it would make a better wiki? I'd like to see something focused on using Docker and docker-compose for local dev. If you think this is a good fit, I'll draft something up 😄

https://www.youtube.com/watch?v=SUNxn0omNi4

@Starefossen
Copy link
Member Author

Thanks for good feedback! I have updated the guide with everything suggested so far. There are two todos lest; intro to docker and where to get help.

@wblankenship I have not had Node installed on my computer for the past year, I have been running everything through Docker Compose! I feel Compose may be a bit much/advanced for this guide, I would definitely like to see that go into a wiki or a separate guide!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestions @rnsloan. I have pushed a new version.

@Starefossen Starefossen changed the title WIP: Add Node.js on Docker guide Add Node.js on Docker guide Nov 23, 2015
@Starefossen
Copy link
Member Author

I am pretty happy with the current version of the Node.js on Docker guide now. Please, nitpick and correct my spelling mistakes if you find anything, and post your suggestions on how to improve this guide.

// cc @nodejs/docker

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ```bash instead of indentation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☑️ Fixed

Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
@Starefossen
Copy link
Member Author

Well, I guess all the suggestions and feedback have been resolved. It should be good to merge now :)

@phillipj
Copy link
Member

It would be a shame if we didn't link to this anywhere. Guess adding a link in our guides section /docs/guides/ would be most appropriate.

@Starefossen
Copy link
Member Author

Isn't that done automatic:

guides: {

@phillipj
Copy link
Member

Isn't that done automatic

Sorry, forgot guides was made as a collection.

phillipj added a commit that referenced this pull request Nov 27, 2015
@phillipj phillipj merged commit 8160c6a into nodejs:master Nov 27, 2015
@phillipj
Copy link
Member

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants