Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo 'javelin: RVM install;'
source /etc/profile.d/rvm.sh
echo 'javelin: RVM use 2.0.0-p353;'
rvm use 2.0.0-p353
container_name=<%= @name %>
echo 'javelin: configuring sandbox specific start up files to set environment variables;'
# Configuration file for the httpd service.
# Source pal specific profiles
. /etc/bbc/profile
# Make sure httpd generates core dumps
DAEMON_COREFILE_LIMIT=unlimited
#
# The default processing model (MPM) is the process-based
@dblooman
dblooman / Dockerfile
Created November 4, 2014 14:02
locales in docker using cucumber
Recently I tried creating a Docker container with Cucumber running inside, I used the base Ruby image from the registry and most things worked, expect

title Cucumber on Jenkins-AWS

[Hudson] smoke-cukes->[Jenkins] smoke-cukes: start job [Jenkins] smoke-cukes->[Hudson] jenkins-callback: send status [Hudson] jenkins-callback->[Hudson] File: write status [Hudson] smoke-cukes->[Hudson] File: Poll new status

# Install apt-get packages:
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
# Install chruby:
cd
wget https://github.com/downloads/postmodern/chruby/chruby-0.2.3.tar.gz
tar -xzvf chruby-0.2.3.tar.gz
cd chruby-0.2.3
sudo make install

Tagging all specs within a directory can be done by specifying metadata

config.define_derived_metadata(:file_path => %r{/spec/unit_tests/}) do |metadata|
  metadata[:unit] = true
end

In this example, rspec -t unit would run all the unit tests.

FROM ruby:2.1.2
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN apt-get update \
&& curl -o phantomjs.tar.gz -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 \
&& tar -xvf phantomjs.tar.gz \
&& mv phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin
test = %w(afrique, azeri, bengali, burmese, cymrufyw, gahuza, hausa, hindi, indonesia, kyrgyz, mundo, naidheachdan, nepali, pashto, persian, portuguese, russian, sinhala, somali, swahili, tajik, tamil, turkce, ukchina, ukrainian, urdu, uzbek, vietnamese, zhongwen, schoolreport, newsbeat)
require 'yaml'
lines = ""
news = IO.readlines('configs/news.yaml').each do |line|
lines += line
end
paths:
front_page_news: /news
front_page_afrique: /afrique
front_page_arabic: /arabic
front_page_azeri: /azeri
front_page_bengali: /bengali
front_page_burmese: /burmese
front_page_cymrufyw: /cymrufyw
front_page_gahuza: /gahuza
front_page_hausa: /hausa
require 'wraith'
@config = 'configs/new.yaml'
@config2 = 'configs/old.yaml'
@wraith = Wraith::CLI.new
def history(config)
@wraith.reset_shots(config)
@wraith.setup_folders(config)
@wraith.save_images(config)