Skip to content

Instantly share code, notes, and snippets.

# Install Kontena master
# HA-proxy
# If you have SSL certificate
SSL_CERT="/path/to/cerf_file"
SSL_CERT=$(awk 1 ORS='\\n' $SSL_CERT)
# else
SSL_CERT="**None**"
gitlab:
image: sameersbn/gitlab:8.3.2
environment:
- KONTENA_LB_INTERNAL_PORT=80
- KONTENA_LB_VIRTUAL_HOSTS=git.badcatlab.com
- DB_HOST=%{project}-gitlab-postgres.kontena.local
- DB_USER=gitlab
- DB_NAME=gitlabhq_production
- DB_PASS=ktNNfTKpNTbc4cWJ4rHcvbwKTMCCddXtkrCbJmXmbvVXW9PHVPXhXhXKHnvKXzVd
- REDIS_HOST=%{project}-gitlab-redis.kontena.local
@nevalla
nevalla / client.js
Created July 22, 2014 08:33
Node.js examples for Qt Cloud Services MWS
/**
* client.js
* This script will open socket connection and listen for incoming messages
*/
var qtc = require("qtc");
var mws = new qtc.Mws({gatewayId: "GATEWAY_ID"});
// open socket connection
mws.open = function(options) {
this.getSocketAddress(function(e,res){
@nevalla
nevalla / Procfile
Last active August 29, 2015 13:58
Use subcontractor gem to launch multiple applications with 'foreman start' command
project1-api: subcontract --rvm ../project1-api --chdir ../project1-api -- rails s -p 3000
project1-sidekiq: subcontract --rvm ../project1-api --chdir ../project1-api -- bundle exec sidekiq
project1-web-ui: subcontract --rvm ../project1-web-ui --chdir ../project1-web-ui -- rails s -p 3001
project2-api: subcontract --rvm ../project2-api --chdir ../project2-api -- rails s -p 4000
@nevalla
nevalla / headless_jasmine.rake
Created May 16, 2013 11:55
Running Jasmine Headlessly
namespace :jasmine do
namespace :ci do
desc "Run Jasmine CI build headlessly"
task :headless do
Headless.ly do
puts "Running Jasmine Headlessly"
Rake::Task['jasmine:ci'].invoke
end
end
end