We are in the process of updating our documentation and want to ensure that we are providing valuable resources for the Seneca community.
This would be a great place to gather feedback from the community on any areas they wish to see documented.
version: '2' | |
services: | |
roach-ui: | |
image: cockroachdb/cockroach:beta-20161215 | |
command: start --insecure | |
ports: | |
- 8080:8080 | |
networks: | |
- roachnet |
# run chmod +x ./setup-droplet.sh to make the file executable | |
#install java8 and latest stable cassandra then install latest node | |
#kill the started cassandra process | |
#open the cassandra.yaml file and replace *localhost* with the server's ip address | |
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer && sudo apt-get install oracle-java8-set-default && echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list && curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - && sudo apt-get update && sudo apt-get install cassandra && curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs && ps -ef | grep cassandra | grep -v grep | awk '{print $2}' | xargs kill && ex -s +%s/localhost/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml && ex -s +%s/12.0.0.17/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml | |
We are in the process of updating our documentation and want to ensure that we are providing valuable resources for the Seneca community.
This would be a great place to gather feedback from the community on any areas they wish to see documented.
'use strict'; | |
const fs = Promise.promisifyAll(require('fs')); | |
const path = require('path'); | |
const crypto = require('crypto'); | |
const CronJob = require('cron').CronJob; | |
module.exports = class FlowUploader { | |
constructor(tempDir, uploadDir, maxFileSize, fileParameterName) { | |
this.tempDir = tempDir || './tmp'; |
We need Java in order to have Cassandra running since Cassandra 2.0 and later require Java 7 or later. And we need Cassandra in order to run Kong.
So lets start installing Java 8 (the newest one)
First we add a repository to our build in order to manage the Java 8 package, since that is not normally supported by Ubuntu.
sudo add-apt-repository ppa:webupd8team/java
(function(undefined) { | |
'use strict'; | |
// Check if dependecies are available. | |
if (typeof XLSX === 'undefined') { | |
console.log('xlsx.js is required. Get it from https://github.com/SheetJS/js-xlsx'); | |
return; | |
} | |
if (typeof _ === 'undefined') { | |
console.log('Lodash.js is required. Get it from http://lodash.com/'); |