mirror of
https://github.com/scratchfoundation/scratch-docker.git
synced 2025-06-10 19:10:19 -04:00
First
This commit is contained in:
commit
9bc3fa9ef8
6 changed files with 57 additions and 0 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Mac OS
|
||||
.DS_Store
|
||||
|
||||
# NPM
|
||||
/node_modules
|
||||
npm-*
|
||||
|
||||
# Build
|
||||
dist/*
|
||||
|
||||
# Editors
|
||||
/#*
|
||||
*~
|
5
.npmignore
Normal file
5
.npmignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
node_modules/
|
||||
.DS_Store
|
||||
*.log
|
||||
.nyc_output/
|
||||
coverage/
|
14
README.md
Normal file
14
README.md
Normal 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
5
bin/docker_config.sh
Executable 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
3
index.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
nothingYet: () => { return true; },
|
||||
};
|
17
package.json
Normal file
17
package.json
Normal 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"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue