Slides presented during Containers 101 online meetup.
Full recording of the session is available at
https://vimeo.com/137176494
Join future meetups live at :
http://www.meetup.com/Containers-101-online-meetup/
Follow our blog posts at:
blog.codefresh.io
Energy Awareness training ppt for manufacturing process.pptx
Building a micro-service using Node.js and Docker - Part #2
1. Containers #101
Building a micro-service using
Node.js & Docker #2
Aug15
Recording available at:
https://vimeo.com/137176494
2. About the meetup
• A series of 30 min webinars + 10 min Q&A
• Hands On
• Session are recorded
• Suggested topics and presenters are
welcome
3. About me
• Developer, entrepreneur and technology
enthusiast
• Live in the Silicon Valley since 2008
• Founder and CEO of Codefresh
• Member of the Node.js foundation
@RazielTabib
4. About codefresh
• A Docker platform for development teams.
• Build, Run & Test Docker containers
• On demand staging and testing
environments
• Launch any PR, Commit or Branch in
seconds
@codefresh
5. Terminology
Docker File
A recipe for Docker image
Docker Images
Blueprints of our application
Docker Container
Created from docker images and are real instances of our application
Docker Daemon
Building, running and distributing Docker containers
Docker Client
Run on our local machine and connect to the daemon
Docker Hub
A registry of docker images
https://www.airpair.com/node.js/posts/getting-started-with-docker-for-the-nodejs-dev
6. What we did last time
• Build a simple micro-service
ubuntu
Node.js
base image
micro-service
micro-service
micro-service image
• Create base Docker image
• Run our micro-service inside a container
• Create a Docker image from an existing container
• Publish our image in Docker hub
Recording is available @
https://vimeo.com/codefresh
7. What we will see today
ubuntu
Node.js
base image
• Create base Docker image using Docker file
FROM ubuntu:latest
MAINTAINER raziel@codefresh.io
#1 RUN
RUN apt-get update
RUN apt-get install –y nodejs
……..
Dockerfile
8. What we will see today
• Build a simple micro-service
ubuntu
Node.js
micro-service
micro-service image
• Create base Docker image using Docker file
• Create new image with our microservice
FROM ubuntu:latest
MAINTAINER raziel@codefresh.io
#1 RUN
RUN apt-get update
RUN apt-get install –y nodejs
……..
#2 COPY
COPY . /src
….
Dockerfile
micro-service
9. What we will see today
• Build a simple micro-service
• Create base Docker image using Docker file
• Create new image with our micro service
• Deploy to Digital Ocean
ubuntu
Node.js
micro-service
micro-service image
11. What we saw today
• Build a simple micro-service
• Create base Docker image using Docker file
• Create new image with our microservice
• Deploy to Digital Ocean
ubuntu
Node.js
micro-service
micro-service image
12. additional resources
• Codefresh blog blog.codefresh.io
• Containers #101
http://www.meetup.com/Containers-101-online-meetup/
• Docker Online meetup (delivered by Docker)
http://www.meetup.com/Docker-Online-Meetup/
@codefresh
13. Questions?
Sign up to our beta @ www.codefresh.io
Recording available at:
https://vimeo.com/137176494
raziel@codefresh.io
www.codefresh.io
@RazielTabib