Skip to content

Instantly share code, notes, and snippets.

@evandandrea
Created August 25, 2016 19:11
Show Gist options
  • Save evandandrea/fb2ddeae6e515a92baa209116fdfe16c to your computer and use it in GitHub Desktop.
Save evandandrea/fb2ddeae6e515a92baa209116fdfe16c to your computer and use it in GitHub Desktop.
name: rocketchat-server
version: 0.37.1
summary: Rocket.Chat server
description: Have your own Slack like online chat, built with Meteor. https://rocket.chat/
confinement: strict
apps:
rocketchat-server:
command: env ROOT_URL=http://localhost PORT=3000 MONGO_URL=mongodb://localhost:27017/parties node $SNAP/main.js >$SNAP_DATA/server.log 2>&1
daemon: simple
plugs: [network, network-bind]
rocketchat-mongo:
command: env LC_ALL=C mongod --dbpath=$SNAP_COMMON
daemon: simple
plugs: [network, network-bind]
parts:
node:
plugin: nodejs
node-engine: 0.10.44
node-packages:
- fibers
- underscore
- source-map-support
- semver
- meteor-promise
organize:
lib/node_modules: node_modules
rocketchat-server:
plugin: dump
after: [mongodb]
source: https://cdn-download.rocket.chat/build/rocket.chat-0.37.1.tgz
stage:
- programs
- main.js
snap:
- programs
- main.js
mongodb:
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz
plugin: dump
stage-packages:
- libssl1.0.0
stage:
- usr
- bin
- lib
snap:
- usr
- bin
- lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment