Skip to content

marcossantiago/docker-workshop

Repository files navigation

This Docker Workshop was created with reveal.js.

A lof ot the content was taken from this repo docker-workshop.

Docker Workshop

A simple docker workshop for anyone who wants to learn how to use docker effectively in their day-to-day dev work.

Table of contents

Quickstart with Amazon Cloud9

Provision a Cloud9 environment using one of the CloudFormation templates below.

Cloud9 is available in 5 regions:

Region Launch with new VPC Launch with Existing VPC
N. Virginia (us-east-1) Deploy to AWS Deploy to AWS
Ohio (us-east-2) Deploy to AWS Deploy to AWS
Oregon (us-west-2) Deploy to AWS Deploy to AWS
Ireland (eu-west-1) Deploy to AWS Deploy to AWS
Singapore (ap-southeast-1) Deploy to AWS Deploy to AWS

To open Cloud9 select the URL in the Outputs of the CloudFormation stack.

Setup Script

From the Cloud9 IDE terminal, download and run the environment setup script:

$ aws s3 cp s3://docker-workshop-quickstart/lab-ide-build.sh . && \
    chmod +x lab-ide-build.sh && \
    . ./lab-ide-build.sh

The output should output the endpoint for your environment:

...
 Details:
 --------
 Docker Workshop Version: May 2018
 Endpoint URL: https://ec2-34-216-12-241.us-west-2.compute.amazonaws.com

Run your first Web Server with Docker

From the Cloud9 IDE terminal run an nginx docker container, exposing port 80.

$ docker run -it --rm -p 80:80 nginx

Navigate to the Endpoint URL on HTTP port 80 to view the nginx welcome page.

Run Docker Presentation

Some reveal.js features, like external Markdown and speaker notes, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the reveal.js source code.

  1. Install Node.js (4.0.0 or later)

  2. Clone the workshop repository

    $ git clone git@github.com:marcossantiago/docker-workshop.git
  3. Navigate to the docker-workshop folder

    $ cd docker-workshop
  4. Install dependencies

    $ npm install
  5. Serve the presentation and monitor source files for changes

    $ npm start
  6. Open http://localhost:8000 to view your presentation

    You can change the port by using npm start -- --port=8001.

About

Quick Docker Workshop for newbies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •