This Docker Workshop was created with reveal.js.
A lof ot the content was taken from this repo docker-workshop.
A simple docker workshop for anyone who wants to learn how to use docker effectively in their day-to-day dev work.
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.
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
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.
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.
-
Install Node.js (4.0.0 or later)
-
Clone the workshop repository
$ git clone git@github.com:marcossantiago/docker-workshop.git
-
Navigate to the docker-workshop folder
$ cd docker-workshop
-
Install dependencies
$ npm install
-
Serve the presentation and monitor source files for changes
$ npm start
-
Open http://localhost:8000 to view your presentation
You can change the port by using
npm start -- --port=8001
.