Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

moritzheiber/playing-port-authority

Repository files navigation

Playing Port Authority

A presentation about Test Driven Development for containers using ServerSpec.

The presentation is written in RemarkJS, needs a webserver to run and includes all perks like presenter notes etc. e.g. press p to show my notes for each slide, clone the display with c. It's an amazing tool and I love using it for presentations.

Prerequisites

Building the presentation

The presentation is using embedmd for making use of the existing code samples. You will need to install it first. To "compile" the code samples and add them to the presentation run:

$ ./run build

Running the code

  • Docker >=1.12.x (all the tests are written for it)
  • Ruby >=2.x (for ServerSpec)
  • Bundler >=1.12.4 (to install the necessary Ruby packages)

Run a local webserver

You can use the run convenience script:

$ ./run serve

It uses Python to spawn a small webserver. Any webserver serving index.html and the images will do though.

You can then use http://localhost:8000/ to gain access.

Run tests

The run the invididual tests simple use:

$ ./run test1 # Runs first test
$ ./run test2 # Runs second test
$ ./run test3 # Runs third test

You can switch to the failing tests on the failing branch:

$ git checkout failing
$ ./run testX

Note: The tests will fail, obviously ;)

About

Playing Port Authority - TDD for containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors