From 9bc3fa9ef8da705c6a5b78d23a07e3b9b806d0a2 Mon Sep 17 00:00:00 2001
From: Colby Gutierrez-Kraybill <colbygk@media.mit.edu>
Date: Tue, 21 Aug 2018 11:27:47 -0400
Subject: [PATCH] First

---
 .gitignore           | 13 +++++++++++++
 .npmignore           |  5 +++++
 README.md            | 14 ++++++++++++++
 bin/docker_config.sh |  5 +++++
 index.js             |  3 +++
 package.json         | 17 +++++++++++++++++
 6 files changed, 57 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .npmignore
 create mode 100644 README.md
 create mode 100755 bin/docker_config.sh
 create mode 100644 index.js
 create mode 100644 package.json

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fdc7b83
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+# Mac OS
+.DS_Store
+
+# NPM
+/node_modules
+npm-*
+
+# Build
+dist/*
+
+# Editors
+/#*
+*~
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..205a295
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,5 @@
+node_modules/
+.DS_Store
+*.log
+.nyc_output/
+coverage/
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fc43405
--- /dev/null
+++ b/README.md
@@ -0,0 +1,14 @@
+# scratch-docker
+
+Settings and setup utilities for Scratch infrastructure related development and repositories, focused on Docker related issues.
+
+## What does it do?
+
+Currently provides utilities for gluing together various Scratch infrastructure repositories by maintaining a single location for named Docker networks.
+
+### Usage:
+
+```
+$ ./node_modules/scratch-docker/bin/docker_config.sh network create
+```
+
diff --git a/bin/docker_config.sh b/bin/docker_config.sh
new file mode 100755
index 0000000..2e3a5ad
--- /dev/null
+++ b/bin/docker_config.sh
@@ -0,0 +1,5 @@
+NETWORK_NAME=scratchapi_scratch_network
+
+if [ -z $(docker network ls --filter name=^${NETWORK_NAME}$ --format="{{ .Name }}") ] ; then 
+     docker network create ${NETWORK_NAME} ; 
+fi
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..5e81a45
--- /dev/null
+++ b/index.js
@@ -0,0 +1,3 @@
+module.exports = {
+    nothingYet: () => { return true; },
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..1ef1577
--- /dev/null
+++ b/package.json
@@ -0,0 +1,17 @@
+{
+  "name": "scratch-docker",
+  "version": "1.0.0",
+  "description": "Settings and setup utilities for Scratch infrastructure related development and repositories",
+  "repository": {
+    "type": "git",
+    "url": "git+ssh://git@github.com/LLK/scratch-docker.git"
+  },
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "Massachusetts Institute of Technology",
+  "license": "BSD-3-Clause",
+  "keywords": [
+    "scratch"
+  ]
+}