Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanj/commander-1k
nodejs commander and dashboard for 1k-container demo
https://github.com/ryanj/commander-1k
Last synced: 18 days ago
JSON representation
nodejs commander and dashboard for 1k-container demo
- Host: GitHub
- URL: https://github.com/ryanj/commander-1k
- Owner: ryanj
- Created: 2015-04-09T05:29:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-01T17:46:28.000Z (over 9 years ago)
- Last Synced: 2024-10-11T00:12:54.858Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://github.com/ryanj/hexboard
- Size: 4.68 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# commander-1k [![Dependency Check](http://img.shields.io/david/ryanj/commander-1k.svg)](https://david-dm.org/ryanj/commander-1k)
## Local Development
Install dependencies:```bash
npm install
```Start a local server, passing in config via the environment:
```bash
ACCESS_TOKEN=12345678 OPENSHIFT_SERVER=openshift.servername.com npm start
```Create 1000 doodlepods:
```bash
for x in $(cat 1k_app_names) ; do cat app_template.json | sed -e "s/APPNAME/$x/g" | osc create -f - ; done
```After the server has started, submit some images:
```bash
OPENSHIFT_SERVER="http://localhost:8080" CUID="007" SUBMISSION="yes!" USERNAME="joe" node post_image.manual.js
```## Docker
To run [the related docker image](https://registry.hub.docker.com/u/ryanj/commander-1k/):```bash
docker pull ryanj/commander-1k
docker run -d -p 8080:8080 -e "HOSTNAME=localhost" -e "ACCESS_TOKEN=00789101112" -e "OPENSHIFT_SERVER=openshift.servername.com" ryanj/commander-1k
```## OpenShiftV3
This demo can be launched on the web using the nodejs base image.Make sure to include environment variables for the `OPENSHIFT_SERVER` and `ACCESS_TOKEN` if you want live data.
Then, start a build from the CLI:
```bash
osc start-build commander-1k
```And, add public routes:
```bash
osc create -f routes.json
```## License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)