containers #101 meetup: building a micro-service using node.js and docker - part #2

Post on 15-Apr-2017

42 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Containers #101Building a micro-service using Node.js & Docker #2 Aug15

About the meetup • A series of 30 min webinars + 10 min

Q&A• Hands On• Session are recorded• Suggested topics and presenters are

welcome

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

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

TerminologyDocker FileA recipe for Docker image Docker ImagesBlueprints of our applicationDocker ContainerCreated from docker images and are real instances of our applicationDocker DaemonBuilding, running and distributing Docker containersDocker ClientRun on our local machine and connect to the daemonDocker HubA registry of docker images

https://www.airpair.com/node.js/posts/getting-started-with-docker-for-the-nodejs-dev

What we did last time

• Build a simple micro-service

ubuntu

Node.jsbase 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

What we will see today

ubuntu

Node.jsbase image

• Create base Docker image using Docker file

FROM ubuntu:latestMAINTAINER raziel@codefresh.io

#1 RUNRUN apt-get updateRUN apt-get install –y nodejs……..

Dockerfile

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 microserviceFROM ubuntu:latestMAINTAINER raziel@codefresh.io

#1 RUNRUN apt-get updateRUN apt-get install –y nodejs……..

#2 COPYCOPY . /src

….

Dockerfile

micro-service

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

Docker new toolbox

https://www.docker.com/toolbox

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

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

Questions?

Sign up to our beta @ www.codefresh.io

Recording available at:https://vimeo.com/137176494

raziel@codefresh.iowww.codefresh.io

@RazielTabib

top related