This commit is contained in:
Colby Gutierrez-Kraybill 2018-08-21 11:27:47 -04:00
commit 9bc3fa9ef8
6 changed files with 57 additions and 0 deletions

13
.gitignore vendored Normal file
View file

@ -0,0 +1,13 @@
# Mac OS
.DS_Store
# NPM
/node_modules
npm-*
# Build
dist/*
# Editors
/#*
*~

5
.npmignore Normal file
View file

@ -0,0 +1,5 @@
node_modules/
.DS_Store
*.log
.nyc_output/
coverage/

14
README.md Normal file
View file

@ -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
```

5
bin/docker_config.sh Executable file
View file

@ -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

3
index.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
nothingYet: () => { return true; },
};

17
package.json Normal file
View file

@ -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"
]
}