This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential git-core | |
RUN if [ ! $(grep universe /etc/apt/sources.list) ]; then sed 's/main$/main universe/' -i /etc/apt/sources.list && apt-get update; fi | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk | |
RUN mkdir -p /opt/downloads && cd /opt/downloads && curl -SsfLO "http://www.apache.org/dist/hbase/hbase-0.94.10/hbase-0.94.10.tar.gz" | |
RUN cd /opt && tar xvfz /opt/downloads/hbase-0.94.10.tar.gz | |
RUN mkdir -p /data/hbase | |
RUN mkdir -p /root/.profile.d | |
RUN mkdir -p /root && echo Zm9yIHByb2ZpbGVfcGF0aCBpbiAkKGZpbmQgL3Jvb3QvLnByb2ZpbGUuZC8gLXR5cGUgZik7IGRvIHNvdXJjZSAkcHJvZmlsZV9wYXRoOyBkb25lCg== | base64 -d > /tmp/wunderscale.e4e4b9a9fbb0a7813a4707407606ccb195999effc1d27eac75a879113a4a017b && mv /tmp/wunderscale.e4e4b9a9fbb0a7813a4707407606ccb195999effc1d27eac75a879113a4a017b /root/.profile | |
RUN mkdir -p /root/.profile.d && echo ZXhwb3J0IEpBVkFfSE9NRT0vdXNyL2xpYi9qdm0vamF2YS02LW9wZW5qZGstYW1kNjQK | base64 -d > /tmp/wundersc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
@go get code.google.com/p/go.crypto/ssh | |
go build -o bin/test_ssh_client *.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove all images | |
$ docker rmi `docker images |sort -r| grep -v "^REPOSITORY" | awk '{print $3}'` | |
# remove all containers | |
$ docker rm `docker ps -a | awk '{print $1}'` | |
# min ubuntu image | |
$ mkdir /home/vagrant/new | |
$ debootstrap --variant=minbase --arch=amd64 precise /home/vagrant/new http://192.168.1.50:3142/ubuntu | |
$ cd /home/vagrant/new | |
$ tar cvfz ../min.tgz . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove all images | |
$ docker rmi `docker images |sort -r| grep -v "^REPOSITORY" | awk '{print $3}'` | |
# remove all containers | |
$ docker rm `docker ps -a | awk '{print $1}'` | |
# min ubuntu image | |
$ mkdir /home/vagrant/new | |
$ debootstrap --variant=minbase --arch=amd64 precise /home/vagrant/new http://192.168.1.50:3142/ubuntu | |
$ cd /home/vagrant/new | |
$ tar cvfz ../min.tgz . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2011 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// Modify by linuz.ly | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"code.google.com/p/go.crypto/ssh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade | |
RUN apt-get install -y openssh-server supervisor | |
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf | |
RUN mkdir -p /var/run/sshd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jenkins Stable | |
# | |
# VERSION 1.517/1.509.1 | |
# DOCKER-VERSION 0.4.0 | |
FROM base:ubuntu-12.10 | |
MAINTAINER Victor Vieux <[email protected]> | |
# Install Jenkins Stable | |
RUN apt-get install wget -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Copyright (c) 2007, Tony Ivanov | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the | |
documentation and/or other materials provided with the distribution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UBUNTU_NAME='precise' | |
UBUNTU_VERSION='12.04' | |
CHEF_VERSION='10.26.0' | |
ARCH='amd64' | |
sudo debootstrap --arch=${ARCH} --variant=minbase ${UBUNTU_NAME} ${UBUNTU_NAME}-${BUILD_NUMBER} | |
snapshot0=$(sudo tar -C ${UBUNTU_NAME}-${BUILD_NUMBER} -c .|docker import -) | |
sudo rm -rf ${UBUNTU_NAME}-${BUILD_NUMBER} | |
cat > Dockerfile <<EOF | |
FROM ${snapshot0} |