Skip to content

Instantly share code, notes, and snippets.

Created October 26, 2017 20:52
What would you like to do?
Node app which uses dockerode to run a simple test suite against a Git Repo.
git clone $1 /tmp/app
cd /tmp/app
git checkout $2
write-good *.md
FROM node:8
RUN npm install -g write-good
ADD /tmp/
console.log("Just Playing Along")
var Docker = require("dockerode")
var docker = new Docker({ socketPath: "/var/run/docker.sock" })
"4d55c12364a5", // in the `images` folder, run `docker build .` and get the container ID
["bash", "/tmp/", "", "SHA-or-REF"],
.then(function(container) {
return container.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment