- Launch the instance into your VPC
ssh -A ubuntu@$PUBLIC_IPcd ~/tempest.git; git fetch- sudo su - tempest # using the password i tell you
cd ~/tempest-web; git pull --ff-only ~ubuntu/tempest.git origin/mastercd ~/tempest-web/web; bin/bundle --without test --deployment && env BUNDLE_GEMFILE=bosh.Gemfile bin/bundle --deployment- edit the
config/database.ymlto change the database user name totempest cd ~/tempest-web/web; bundle exec rake db:create db:migrate RAILS_ENV=development- Inside
/tempest-web/web/.env file, search and replace "/workspace/installation/" with "~/tempest-web/" env TEMPEST_INFRASTRUCTURE=aws bin/rails s
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
| eval $(tmux showenv | grep -v ^- | sed 's/=\(.\+\)/="\1"/') |
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
| $ bundle exec rake full[1] | |
| target read from ENV: ccng.cf43.dev.las01.vcsops.com | |
| normal user read from /Users/jesse/.bvt/config.yml: vcap_tester@vmware.com | |
| rspec --format Fuubar --color spec/ --tag ~admin | |
| Run options: exclude {:admin=>true} | |
| 1) BVT::Spec::AutoStaging::JavaSpring Start Spring Web Application with no service dependencies | |
| Failure/Error: response.response_code.should == 200 | |
| expected: 200 | |
| got: 404 (using ==) | |
| # ./spec/autostaging/java_spring_spec.rb:144:in `block (2 levels) in <top (required)>' |
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
| $ export VCAP_BVT_TARGET=ccng.cf43.dev.las01.vcsops.com VCAP_BVT_USER_PASSWD=tester VCAP_BVT_CCNG_V1_TEST=true | |
| $ bundle exec rake full[1] | |
| target read from ENV: ccng.cf43.dev.las01.vcsops.com | |
| normal user read from /Users/jesse/.bvt/config.yml: vcap_tester@vmware.com | |
| rspec --format Fuubar --color spec/ --tag ~admin | |
| Run options: exclude {:admin=>true} | |
| 1) BVT::Spec::ServiceLifecycle::Ruby19Sinatra Take mysql snapshot and rollback to a certain snapshot | |
| Failure/Error: get_snapshots(service_id) | |
| RuntimeError: | |
| code:500, body:{"code":10001,"description":"Server error"} |
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
| #include <stdio.h> | |
| int main(){ | |
| /* foo for leak */ | |
| FILE *foo = fopen("foo", "r"); | |
| if (!foo) | |
| return 1; | |
| char buf[256]; | |
| /* read one byte */ | |
| if (!fread(buf, 1, 1, foo)) |
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 | |
| set -e -u -x | |
| rev1=${1:-origin/master} | |
| rev2=${2:-HEAD} | |
| git log --graph --decorate --oneline $rev1 $rev2 --not $(git rev-list --parents --max-count 1 $(git merge-base $rev1 $rev2) | cut -d" " -f2- ) |
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 ruby | |
| def execute(cmd) | |
| stdout = `#{cmd}` | |
| if $?.success? | |
| return stdout | |
| end | |
| raise "execution of command \"#{cmd}\" failed. Status: #{$?}" | |
| end | |
| args = readline.split |
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
| set -x GIT_EDITOR "mvim -f" | |
| # until fish 2.2, we'll have to do this | |
| set PATH (brew --prefix)/bin $PATH | |
| complete -f -c git -n '__fish_git_using_command pull' -l ff-only -d 'Refuse to merge unless fast-forward possible' | |
| complete -f -c git -n '__fish_git_using_command pull' -l rebase -d 'Rebase instead of merge' | |
| complete -c git -n '__fish_git_using_command commit' -s v -l verbose -d 'Show diff in commit message template' | |
| complete -c git -n '__fish_git_using_command commit' -s a -l all -d 'Commit all changed files' |
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 | |
| # Everything in this script runs as root | |
| set -e -u | |
| user=tempest | |
| user_dir="/home/${user}" | |
| echo "--- Installing libyaml manually" |
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 | |
| set -e -u | |
| set -x | |
| _main() { | |
| softwareupdate --install --all | |
| type brew || install_brew | |
| install_packages |
OlderNewer