Skip to content
Snippets Groups Projects
Unverified Commit 133fec8e authored by Aaron Ogle's avatar Aaron Ogle
Browse files

Brought over @Sing-Li work with caddy and db backup

parent 3bdb3c7c
No related branches found
No related tags found
No related merge requests found
#
# Easiest way to work with this file, from an updated Ubuntu 16.04 LTS image
# 1. create a non-root user with sudo priv and perform following steps as non-root
# 2. `sudo apt-get update`
# 3. `sudo apt-get install snapcraft python build-essential`
# 4. `snapcraft stage`
# 5. `snapcraft snap`
name: rocketchat-server
version: 0.50.0-develop
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 BABEL_CACHE_DIR=/tmp ROOT_URL=http://localhost PORT=3000 MONGO_URL=mongodb://localhost:27017/parties Accounts_AvatarStorePath=$SNAP_COMMON/uploads node $SNAP/main.js
daemon: simple
plugs: [network, network-bind]
rocketchat-mongo:
command: env LC_ALL=C mongod --bind_ip 127.0.0.1 --smallfiles --dbpath=$SNAP_COMMON
daemon: simple
plugs: [network, network-bind]
parts:
node:
plugin: nodejs
node-engine: 4.7.1
node-packages:
- promise
- fibers
- underscore
- source-map-support
- semver
build-packages:
# For fibers
- python
- build-essential
- nodejs
organize:
lib/node_modules: node_modules
rocketchat-server:
plugin: dump
after: [mongodb]
source: https://rocket.chat/releases/develop/download
source-type: tar
stage-packages:
- graphicsmagick
stage:
- programs
- main.js
- usr
- lib
snap:
- programs
- main.js
- usr
- lib
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
......@@ -13,57 +13,86 @@ description: Have your own Slack like online chat, built with Meteor. https://ro
confinement: strict
apps:
rocketchat-server:
command: env BABEL_CACHE_DIR=/tmp ROOT_URL=http://localhost PORT=3000 MONGO_URL=mongodb://localhost:27017/parties Accounts_AvatarStorePath=$SNAP_COMMON/uploads node $SNAP/main.js
command: env BABEL_CACHE_DIR=/tmp ROOT_URL=http://localhost PORT=3000 MONGO_URL=mongodb://localhost:27017/parties Accounts_AvatarStorePath=$SNAP_COMMON/uploads MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rcreplset node $SNAP/main.js
daemon: simple
plugs: [network, network-bind]
rocketchat-mongo:
command: env LC_ALL=C mongod --bind_ip 127.0.0.1 --smallfiles --dbpath=$SNAP_COMMON
command: env LC_ALL=C startmongo
daemon: simple
plugs: [network, network-bind]
rocketchat-caddy:
command: env LC_ALL=C caddy -conf=$SNAP_DATA/Caddyfile -host=localhost:8080
daemon: simple
plugs: [network, network-bind]
backupdb:
command: env LC_ALL=c rcbackup
plugs: [network]
initcaddy:
command: env LC_ALL=c initcaddy
parts:
node:
plugin: nodejs
node-engine: 4.7.1
node-engine: 4.7.0
after: [mongodb]
node-packages:
- minimax
- bcrypt
- promise
- meteor-promise
- fibers
- underscore
- source-map-support
- semver
build-packages:
# For fibers
- python
- build-essential
- nodejs
organize:
lib/node_modules: node_modules
rocketchat-server:
stage:
- bin
- node_modules
snap:
- bin
- node_modules
mongodb:
plugin: dump
after: [mongodb]
source: https://rocket.chat/releases/latest/download
source-type: tar
stage-packages:
- graphicsmagick
- mongodb-server
- libtcmalloc-minimal4
- mongodb-clients
- libssl1.0.0
stage:
- programs
- main.js
- usr
- etc
- lib
snap:
- programs
- main.js
- usr
- etc
- lib
mongodb:
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz
scripts:
plugin: dump
stage-packages:
- libssl1.0.0
stage:
- usr
- bin
- lib
source: bin/
organize:
rcbackup: bin/rcbackup
startmongo: bin/startmongo
initmongo: bin/initmongo
Caddyfile: bin/Caddyfile
initcaddy: bin/initcaddy
initmongoreplset.js: bin/initmongoreplset.js
snap:
- usr
- bin
- lib
caddy:
plugin: go
go-importpath: github.com/mholt/caddy
source: https://github.com/mholt/caddy
source-type: git
source-commit: 53e117802fedd5915eeb32907873d8786a4b2936
snap:
- bin/caddy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment