Skip to content

Instantly share code, notes, and snippets.

@ricktap
ricktap / docker_test_runner.sh
Last active July 27, 2017 10:59
Docker test runner, taken from phusin/baseimage
#!/bin/bash
set -e
function abort()
{
echo "$@"
exit 1
}
function cleanup()
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "http://chef.example.com:4000"
signing_ca_path "/var/chef/ca"
couchdb_database 'chef'
cookbook_path [ "/var/chef/cookbooks", "/var/chef/site-cookbooks" ]
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libgecode-dev couchdb rabbitmq-server
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@ricktap
ricktap / chef_solo_bootstrap.sh
Created December 18, 2012 14:20 — forked from ryanb/chef_solo_bootstrap.sh
updated to libreadline6-dev
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install