savishy / docker-examples

A repository of Docker examples from simple to advanced.
4 stars 17 forks source link

example of serverspec with docker #7

Closed savishy closed 6 years ago

savishy commented 6 years ago

being tracked in branch docker-tdd now.

savishy commented 6 years ago

Step 1: Bundle Install / Bundle Exec RSpec

docker-tdd-1

savishy commented 6 years ago

Step 2. Write and Execute Failing Tests

docker-tdd-2

docker-tdd-2 2

savishy commented 6 years ago

Step 3. Implement Dockerfile

Write the first line of Dockerfile:

docker-tdd-from-openjdk

Run the test: image

Develop your Specs:

docker-tdd-developing-specs docker-tdd-developing-specs-2

Rerun your Spec Tests

One Test Passed

image

Totally 5 tests ran, one passed and 4 pending

image

savishy commented 6 years ago

Step 5. Continue Implementing the Tests and Dockerfile

Implement the Test for JDK Version

docker-tdd-4-1

docker-tdd-4-2

Execute Test, It Passes

image

Repeat this process until all the tests pass.

1 image

2 image

image

3 image

4 image

5 image