Created
May 28, 2019 02:46
-
-
Save andreybleme/f383950338bda9a399e99839735cb39a to your computer and use it in GitHub Desktop.
andreybleme.com | Integration tests with Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Docker} = require('node-docker-api'); | |
const docker = new Docker({ socketPath: '/var/run/docker.sock' }); | |
docker.container.create({ | |
Image: 'postgres', | |
name: 'test' | |
}) | |
.then(container => container.start()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment