Skip to content

Instantly share code, notes, and snippets.

@pward123
Created September 13, 2017 09:07
Show Gist options
  • Save pward123/4571b9ce61dae836616cf9e6630846cc to your computer and use it in GitHub Desktop.
Save pward123/4571b9ce61dae836616cf9e6630846cc to your computer and use it in GitHub Desktop.
Snap for NATS server + ws-tcp-relay
name: savi-nats-server
version: "1.0.2"
summary: "High-Performance server for NATS"
description: "High-Performance server for NATS, the cloud native messaging system"
confinement: strict
apps:
nats-server:
command: gnatsd-v1.0.2-linux-amd64/gnatsd
daemon: simple
plugs: [network-bind]
stop-timeout: 10s
nats-server-ws:
command: bin/ws-tcp-relay localhost
daemon: simple
plugs: [network-bind]
stop-timeout: 10s
parts:
gnatsd:
source: https://github.com/nats-io/gnatsd/releases/download/v1.0.2/gnatsd-v1.0.2-linux-amd64.zip
plugin: dump
install: |
chmod a+x $SNAPCRAFT_PART_INSTALL/gnatsd-v1.0.2-linux-amd64/gnatsd
ws-tcp-relay:
plugin: go
source: https://github.com/isobit/ws-tcp-relay
source-type: git
go-importpath: github.com/isobit/ws-tcp-relay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment