Skip to content

Commit

Permalink
Run update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
docker-library-bot committed Oct 19, 2016
1 parent 4b7a45f commit 9eb8684
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 16 deletions.
67 changes: 52 additions & 15 deletions nats-streaming/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Supported tags and respective `Dockerfile` links

- [`0.2.2`, `latest` (*Dockerfile*)](https://github.com/nats-io/nats-streaming-docker/blob/d7e21255fec8967f7dbdacdb4501c8e78d821e49/Dockerfile)
- [`0.3.0`, `latest` (*Dockerfile*)](https://github.com/nats-io/nats-streaming-docker/blob/1fcbfd456264c5da5888e279d9ea865166eeb3cf/Dockerfile)

For more information about this image and its history, please see [the relevant manifest file (`library/nats-streaming`)](https://github.com/docker-library/official-images/blob/master/library/nats-streaming). This image is updated via [pull requests to the `docker-library/official-images` GitHub repo](https://github.com/docker-library/official-images/pulls?q=label%3Alibrary%2Fnats-streaming).

Expand All @@ -25,25 +25,37 @@ $ docker run -d nats-streaming

Output that you would get if you had started with `-ti` instead of `d` (for daemon):

[INF] Starting nats-streaming-server[test-cluster] version 0.2.2
[INF] Starting nats-server version 0.9.2
[INF] Starting http monitor on :8222
[INF] Starting nats-streaming-server[test-cluster] version 0.3.0
[INF] Starting nats-server version 0.9.4
[INF] Listening for client connections on 0.0.0.0:4222
[INF] Server is ready
[INF] STAN: Message store is MEMORY
[INF] STAN: Maximum of 1000000 will be stored
[INF] STAN: --------- Store Limits ---------
[INF] STAN: Channels: 100 *
[INF] STAN: -------- channels limits -------
[INF] STAN: Subscriptions: 1000 *
[INF] STAN: Messages : 1000000 *
[INF] STAN: Bytes : 976.56 MB *
[INF] STAN: Age : unlimited *
[INF] STAN: --------------------------------

To use a file based store instead, you would run:

$ docker run -d nats-streaming -store file -dir datastore

[INF] Starting nats-streaming-server[test-cluster] version 0.2.2
[INF] Starting nats-server version 0.9.2
[INF] Starting http monitor on :8222
[INF] Starting nats-streaming-server[test-cluster] version 0.3.0
[INF] Starting nats-server version 0.9.4
[INF] Listening for client connections on 0.0.0.0:4222
[INF] Server is ready
[INF] STAN: Message store is FILE
[INF] STAN: Maximum of 1000000 will be stored
[INF] STAN: --------- Store Limits ---------
[INF] STAN: Channels: 100 *
[INF] STAN: -------- channels limits -------
[INF] STAN: Subscriptions: 1000 *
[INF] STAN: Messages : 1000000 *
[INF] STAN: Bytes : 976.56 MB *
[INF] STAN: Age : unlimited *
[INF] STAN: --------------------------------

You can also connect to a remote NATS Server running in a docker image.
First, run NATS Server:
Expand All @@ -54,9 +66,17 @@ Now, start the Streaming server and link it to the above docker image:

$ docker run -d --link nats-main nats-streaming -ns nats://nats-main:4222

[INF] Starting nats-streaming-server[test-cluster] version 0.2.2
[INF] Starting nats-streaming-server[test-cluster] version 0.3.0
[INF] Server is ready
[INF] STAN: Message store is MEMORY
[INF] STAN: Maximum of 1000000 will be stored
[INF] STAN: --------- Store Limits ---------
[INF] STAN: Channels: 100 *
[INF] STAN: -------- channels limits -------
[INF] STAN: Subscriptions: 1000 *
[INF] STAN: Messages : 1000000 *
[INF] STAN: Bytes : 976.56 MB *
[INF] STAN: Age : unlimited *
[INF] STAN: --------------------------------

Notice that the output shows that the NATS Server was not started, as opposed to the first output.

Expand All @@ -69,11 +89,24 @@ Streaming Server Options:
-cid, --cluster_id <cluster ID> Cluster ID (default: test-cluster)
-st, --store <type> Store type: MEMORY|FILE (default: MEMORY)
--dir <directory> For FILE store type, this is the root directory
-mc, --max_channels <number> Max number of channels (aka subjects, topics, etc...)
-msu, --max_subs <number> Max number of subscriptions per channel
-mm, --max_msgs <number> Max number of messages per channel
-mb, --max_bytes <number> Max messages total size per channel
-mc, --max_channels <number> Max number of channels (0 for unlimited)
-msu, --max_subs <number> Max number of subscriptions per channel (0 for unlimited)
-mm, --max_msgs <number> Max number of messages per channel (0 for unlimited)
-mb, --max_bytes <number> Max messages total size per channel (0 for unlimited)
-ma, --max_age <seconds> Max duration a message can be stored ("0s" for unlimited)
-ns, --nats_server <url> Connect to this external NATS Server (embedded otherwise)
-sc, --stan_config <file> Streaming server configuration file

Streaming Server File Store Options:
--file_compact_enabled Enable file compaction
--file_compact_frag File fragmentation threshold for compaction
--file_compact_interval <int> Minimum interval (in seconds) between file compactions
--file_compact_min_size <int> Minimum file size for compaction
--file_buffer_size <int> File buffer size (in bytes)
--file_crc Enable file CRC-32 checksum
--file_crc_poly <int> Polynomial used to make the table used for CRC-32 checksum
--file_sync Enable File.Sync on Flush
--file_cache Enable messages caching

Streaming Server TLS Options:
-secure Use a TLS connection to the NATS server without
Expand Down Expand Up @@ -127,6 +160,10 @@ Common Options:
--help_tls TLS help.
```
# Configuration
Details on how to configure further the NATS Streaming server can be found [here](https://github.com/nats-io/nats-streaming-server#configuring)
# License
View [license information](https://github.com/nats-io/nats-streaming-server/blob/master/LICENSE) for the software contained in this image.
Expand Down
2 changes: 1 addition & 1 deletion traefik/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Supported tags and respective `Dockerfile` links

- [`v1.1.0-rc1`, `camembert` (*Dockerfile*)](https://github.com/containous/traefik-library-image/blob/ac09f6208236a539d67c076ae25354d884ad5be7/Dockerfile)
- [`v1.1.0-rc2`, `camembert` (*Dockerfile*)](https://github.com/containous/traefik-library-image/blob/f11e22c4b12565a12e5715e0242b8a1fae4b9dc4/Dockerfile)
- [`v1.0.3`, `reblochon`, `latest` (*Dockerfile*)](https://github.com/containous/traefik-library-image/blob/9d877ca7171211aabc2955ab1a301a685f6852fe/Dockerfile)

For more information about this image and its history, please see [the relevant manifest file (`library/traefik`)](https://github.com/docker-library/official-images/blob/master/library/traefik). This image is updated via [pull requests to the `docker-library/official-images` GitHub repo](https://github.com/docker-library/official-images/pulls?q=label%3Alibrary%2Ftraefik).
Expand Down

0 comments on commit 9eb8684

Please sign in to comment.