This file contains hidden or 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
openssl rsa -in foo.pem -out bar.pem |
This file contains hidden or 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
sudo add-apt-repository ppa:hannes-janetzek/enlightenment-svn | |
sudo apt-get update | |
sudo apt-get install terminology |
This file contains hidden or 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
#!/bin/bash | |
export EC2_HOME=/usr/local/share/ec2_tools/ | |
export JAVA_HOME=/usr/lib/jvm/java | |
export PATH=$PATH:$EC2_HOME/bin | |
INSTANCEID=`curl -s http://169.254.169.254/latest/meta-data/instance-id` | |
case "$1" in | |
MASTER) | |
logger triggering notify master event |
This file contains hidden or 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
#!/usr/bin/env knife exec | |
# A knife exec script to change chef node's name, preserving all the attributes. | |
# | |
# Usage: knife exec rename-node.rb old-name new-name | |
# | |
# Script retrieves the Node object, changes its 'name' attribute, | |
# creates new Node object with updated name and rest of attributes | |
# untouched. Then it deletes old Node and Client objects from | |
# database, and logs into the server to update it: |
This file contains hidden or 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 centos | |
RUN yum install -y sudo openssh-server openssh-clients | |
RUN yum install -y passwd | |
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config | |
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config | |
# fix for ssh connection issue | |
RUN ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_key | |
RUN ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key |
This file contains hidden or 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
mkdir tmp | |
export GOPATH=`pwd`/tmp | |
go get -v github.com/dotcloud/docker/docker | |
# (this may take some time) | |
sudo cp tmp/bin/docker /usr/local/bin/ | |
rm -rf tmp | |
cd tmp/src/github.com/dotcloud/docker | |
git checkout v0.6.7 |
This file contains hidden or 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 base | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget nginx-full | |
RUN (cd /tmp && wget --no-check-certificate https://download.elasticsearch.org/kibana/kibana/kibana-3.0.0milestone4.tar.gz -O pkg.tar.gz && tar zxf pkg.tar.gz && cd kibana-* && cp -rf ./* /usr/share/nginx/www/) | |
RUN ( sed -i 's/elasticsearch: .*$/elasticsearch: "http:\/\/10.130.1.70:9200",/' /usr/share/nginx/www/config.js) | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf | |
RUN rm -rf /tmp/* | |
EXPOSE 80 | |
CMD ["/usr/sbin/nginx","-c", "/etc/nginx/nginx.conf"] |
This file contains hidden or 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 centos | |
MAINTAINER timusg "http://timusg.com" | |
RUN yum -y install java-1.7.0-openjdk | |
RUN wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.tar.gz | |
RUN tar -xf elasticsearch-0.90.2.tar.gz | |
RUN rm elasticsearch-0.90.2.tar.gz | |
EXPOSE :9300 |
This file contains hidden or 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
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
# Add the Docker repository to your apt sources list. | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ | |
> /etc/apt/sources.list.d/docker.list" | |
# Update your sources | |
sudo apt-get update | |
# Install, you will see another warning that the package cannot be authenticated. Confirm install. |
This file contains hidden or 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
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.8-1.ubuntu.12.04_amd64.deb | |
dpkg -i chef-server_11.0.8-1.ubuntu.12.04_amd64.deb | |
sudo chef-server-ctl reconfigure |
NewerOlder