Skip to content

Instantly share code, notes, and snippets.

Goauth:
image: go-auth
ports:
- "9000:9000"
stdin_open: true
links:
- Database:db
command:
- "--db-host"
- "db"
@usmanismail
usmanismail / rancher-get-info.sh
Created March 19, 2015 16:13
A curl wrapper to get container info from the rancher API
#!/bin/sh
usage(){
echo "Usage: $0 ACCESS_KEY ACCESS_SECRET CONATAINER_ID"
exit 1
}
# call usage() function if filename not supplied
[[ $# -ne 3 ]] && usage
@usmanismail
usmanismail / dark-slack-theme.css
Created July 11, 2017 14:08
A dark slack theme
:root {
--primary: #09F;
--accent: #57A;
--background: #2b2929;
--background-elevated: #222;
--background-hover: rgba(255, 255, 255, 0.1);
--sidebar-background: #1a2129;
--border-dim: #666;
CassandraSeed
environment:
RANCHER_ENABLE: 'true'
RANCHER_SEED_SERVICE: CassandraSeed
CASSANDRA_RACK: 'rack1'
CASSANDRA_DC: aws-us-east
CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
labels:
io.rancher.container.pull_image: always
tty: true
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
body {
background: #63818a;
background: -moz-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #63818a), color-stop(100%, #73939b));
background: -webkit-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -o-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -ms-linear-gradient(top, #63818a 0%, #73939b 100%);
background: linear-gradient(top, #63818a 0%, #73939b 100%); }
h1, h2, h3, h4, h5, h6 {
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template to install mysql and jetty",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type": "String"
},
"ContextUrl": {
"Description": "A URL for the jetty context file",
cache:
tty: true
image: memcached
stdin_open: true
WebLB:
image: rancher/load-balancer-service
ports:
- 80:80
links:
- web
{
"variables": {
"app_name": null,
"env_name": null,
"lifecycle": null,
"subnet_id": null,
"source_ami": "ami-0d4cfd66",
"ssh_keypair_name": null,
"ssh_private_key_file": null,
"war_path": null,
@usmanismail
usmanismail / seyren_cloudfront.json
Created October 20, 2012 12:01
A cloud front template to bring up a seyren node
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},