Skip to content

Instantly share code, notes, and snippets.

View etoews's full-sized avatar

Everett Toews etoews

View GitHub Profile
@etoews
etoews / A_README.md
Created April 22, 2016 17:39
Authenticating the jclouds Java SDK with OpenStack or Rackspace and listing servers in all regions

List Servers with OpenStack or Rackspace

Make a directory and copy all of the files below into it then run the following commands.

mvn dependency:copy-dependencies "-DoutputDirectory=./lib"

javac -classpath ".:lib/*" ListServersRackspace.java
java -classpath ".:lib/*" ListServersRackspace $RS_USERNAME $RS_API_KEY
@etoews
etoews / config.toml
Last active March 28, 2016 14:16
Rough script for getting started with Interlock development. https://github.com/ehazlett/interlock
ListenAddr = ":8080"
DockerURL = "tcp://192.168.99.105:3376"
TLSCACert = "/etc/docker/ca.pem"
TLSCert = "/etc/docker/server.pem"
TLSKey = "/etc/docker/server-key.pem"
AllowInsecure = false
EnableMetrics = true
[[extensions]]
name = "nginx"
docker-machine create -d virtualbox swarm-keystore
eval "$(docker-machine env swarm-keystore)"
docker run -d \
-p "8500:8500" \
-h "consul" \
progrium/consul -server -bootstrap
docker-machine create \
-d virtualbox \
@etoews
etoews / jupyterhub-on-swarm.md
Last active April 22, 2016 20:28
Deploy an interactive data science environment with JupyterHub on Docker Swarm

Title

Deploy an interactive data science environment with JupyterHub on Docker Swarm

Description

Deploy an interactive data science environment and share documents that contain live code by taking advantage of Docker and Docker Swarm to deploy Jupyter Notebook servers with JupyterHub.

Abstract

@etoews
etoews / carina.md
Last active December 16, 2015 01:35
Docker Swarm on Carina demo at the The 12 Clouds of Christmas 2015 edition of the Cloud Austin meetup
@etoews
etoews / osa-liberty.md
Last active April 27, 2016 20:42
These are rough notes. There's a good chance it doesn't work as written. Needs some love.

Manual creation of OpenStack Ansible deployment for client testing

  1. https://mycloud.rackspace.com
  2. Create Server
  3. Server Name: osa-libery
  4. Region: IAD
  5. Image: Ubuntu 14.04 (Trusty Tahr) (PVHVM)
  6. Flavor: I/O > 15 GB I/O v1
  7. Advanced Options
  8. Manage SSH Keys (create a keypair for it)
export OS_USERNAME=your-rackspace-username
export OS_PASSWORD=your-rackspace-password
mkdir openstack-sdk
cd openstack-sdk/
virtualenv -p python3 --no-site-packages venv
source venv/bin/activate
pip3 install openstacksdk
python3
@etoews
etoews / secure-ubuntu-server.sh
Created February 2, 2015 18:25
Disclaimer: This is not the most secure configuration possible. This script is only intended to be more secure than the default configuration. No promises are made about this script preventing your server from getting hacked or your bike getting stolen. The bad guys are still out to get you. And running this script does not excuse you from writi…
#!/bin/bash
set -o errexit
# This script assumes you're running it initially as root and you've created it with a key pair. If you
# haven't, you'll be locked out of your server.
if [ -z "$1" ]; then
echo "Usage: $0 NON_ROOT_USER"
echo "Example: $0 foo"
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack
# Services