mirror of
https://github.com/amark/gun.git
synced 2025-07-03 11:22:32 +00:00
Merge pull request #286 from hillct/feature/DockerHub
DockerHub Documentation and sugar
This commit is contained in:
commit
fbb8bbccb1
18
README.md
18
README.md
@ -1,4 +1,5 @@
|
|||||||
# gun [](https://npmjs.org/package/gun) [](https://travis-ci.org/amark/gun) [](https://gitter.im/amark/gun?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
# gun [](https://npmjs.org/package/gun) [](https://travis-ci.org/amark/gun) [](https://gitter.im/amark/gun?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
[](https://hub.docker.com/r/gundb/gun/) [](https://microbadger.com/images/gundb/gun "Get your own image badge on microbadger.com") [](https://hub.docker.com/r/gundb/gun/) [](https://hub.docker.com/r/gundb/gun/)
|
||||||
|
|
||||||
GUN is a realtime, distributed, offline-first, graph database engine. Lightweight and powerful, at just **~9KB** gzipped.
|
GUN is a realtime, distributed, offline-first, graph database engine. Lightweight and powerful, at just **~9KB** gzipped.
|
||||||
|
|
||||||
@ -47,16 +48,23 @@ Try the [interactive tutorial](http://gun.js.org/think.html) in the browser (**5
|
|||||||
|
|
||||||
- To quickly spin up a Gun test server for your development team, uilize eiher [Heroku](http://heroku.com) or [Docker](http://docker.com) or any variant thereof ([Dokku](http://dokku.viewdocs.io/dokku/), [Flynn.io](http://flynn.io), [now.sh](https://zeit.co/now), etc)
|
- To quickly spin up a Gun test server for your development team, uilize eiher [Heroku](http://heroku.com) or [Docker](http://docker.com) or any variant thereof ([Dokku](http://dokku.viewdocs.io/dokku/), [Flynn.io](http://flynn.io), [now.sh](https://zeit.co/now), etc)
|
||||||
|
|
||||||
### Docker
|
### [Docker](https://www.docker.com/)
|
||||||
```bash
|
- Either (fastest) from the [Docker Hub](https://hub.docker.com/r/gundb/gun/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -p 8080:8080 gundb/gun
|
||||||
|
```
|
||||||
|
- Or build the [Docker](https://docs.docker.com/engine/installation/) image locally:
|
||||||
|
|
||||||
|
```bash
|
||||||
git clone https://github.com/amark/gun.git
|
git clone https://github.com/amark/gun.git
|
||||||
cd gun
|
cd gun
|
||||||
docker build -t myrepo/gundb:v1 .
|
docker build -t myrepo/gundb:v1 .
|
||||||
docker run -p 8080:8080 myrepo/gundb:v1
|
docker run -p 8080:8080 myrepo/gundb:v1
|
||||||
```
|
```
|
||||||
Then visit [http://localhost:8080](http://localhost:8080) in your browser.
|
Then visit [http://localhost:8080](http://localhost:8080) in your browser.
|
||||||
|
|
||||||
### Heroku
|
### [Heroku](https://www.heroku.com/)
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/amark/gun.git
|
git clone https://github.com/amark/gun.git
|
||||||
cd gun
|
cd gun
|
||||||
@ -65,7 +73,7 @@ Try the [interactive tutorial](http://gun.js.org/think.html) in the browser (**5
|
|||||||
```
|
```
|
||||||
Then visit the URL in the output of the 'heroku create' step, in your browser.
|
Then visit the URL in the output of the 'heroku create' step, in your browser.
|
||||||
|
|
||||||
### Now.sh
|
### [Now.sh](https://zeit.co/now/)
|
||||||
```bash
|
```bash
|
||||||
npm install -g now
|
npm install -g now
|
||||||
git clone https://github.com/amark/gun.git
|
git clone https://github.com/amark/gun.git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user