Skip to content

Instantly share code, notes, and snippets.

@mklaber
Created September 23, 2015 22:14
Show Gist options
  • Save mklaber/7aaba93eb737413eabb7 to your computer and use it in GitHub Desktop.
Save mklaber/7aaba93eb737413eabb7 to your computer and use it in GitHub Desktop.
Docker Console

Run Civis Console Docker on a Mac

  1. Install Docker Toolbox
  2. Run Docker Quickstart Terminal (you can also use Kitematic to launch the CLI)
  3. cd to your git repository's root directory
  4. Run:
docker run -i -t --rm -e "CIVIS_API_KEY=b5b55...031" -e "DATABASE_USER=youruser" -e "DATABASE_PASSWORD=somePassword" \
-v $(pwd):/app -v /some/local/tmp/directory:/data -w /app --name some-name-that-is-useful \
node bin/your-node-app --flag=123

This is using the node image and assumes that you have a file called your-node-app in the bin directory. The first line of that file should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment