Skip to content

Instantly share code, notes, and snippets.

View lance's full-sized avatar
🎯
Focusing

Lance Ball lance

🎯
Focusing
View GitHub Profile
[builder@localhost steamcannon-appliances]$ /opt/jruby/bin/jruby -S gem install steamcannon-deltacloud-core -v=0.0.7.1
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
ERROR: While executing gem ... (ArgumentError)
marshal data too short
[builder@localhost steamcannon-appliances]$
[root@localhost steamcannon-appliances]# rake rpm:steamcannon-deltacloud-core
(in /mnt/build-disk/steamcannon-appliances)
I, [2010-10-11T14:08:26.575297 #8422] INFO -- : Building package 'steamcannon-deltacloud-core-0.0.7.1-1.fc13.noarch.rpm'...
E, [2010-10-11T14:08:34.329369 #8422] ERROR -- : Command return:
+++++
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /mnt/build-disk/steamcannon-appliances/build/tmp/rpm-tmp.CgjPrI
+ umask 022
+ cd /mnt/build-disk/steamcannon-appliances/build/topdir/fedora/13/BUILD
%files
%defattr(-, root, root, -)
%{gemdir}/bin/deltacloudd
%{gemdir}/gems/%{gemname}-%{deltacloud_version}-java/
%{gemdir}/cache/%{gemname}-%{deltacloud_version}-java.gem
%{gemdir}/specifications/%{gemname}-%{deltacloud_version}-java.gemspec
[root@domU-12-31-39-0F-70-42 steamcannon-appliances]# boxgrinder-build -W appliances/steamcannon.appl -p ec2 -d ami
T, [2010-10-12T09:06:18.998028 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-fedora-os-plugin'...
T, [2010-10-12T09:06:19.042584 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-rhel-os-plugin'...
T, [2010-10-12T09:06:19.043372 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-centos-os-plugin'...
T, [2010-10-12T09:06:19.044021 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-ec2-platform-plugin'...
T, [2010-10-12T09:06:19.090568 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-vmware-platform-plugin'...
T, [2010-10-12T09:06:19.091351 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-s3-delivery-plugin'...
T, [2010-10-12T09:06:19.991126 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-sftp-delivery-plugin'...
T, [2010-10-12T09:06:19.991970 #8527] TRACE -- : Requiring plugin 'boxgrinder-build-local-delivery-plugin'...
[root@domU-12-31-39-0F-70-42 steamcannon-appliances]# ls /root/steamcannon-appliances/build/topdir/fedora/13/RPMS/noarch
jboss-as6-6.0.0.M5-1.noarch.rpm
jboss-as6-cloud-profiles-6.0.0.SNAPSHOT.20100818.r107578-1.noarch.rpm
jboss-jgroups-2.10.0.GA-1.noarch.rpm
steamcannon-069d642-1.fc13.noarch.rpm
steamcannon-deltacloud-core-deployment-0.0.7.1-1.fc13.noarch.rpm
torquebox-cloud-profile-deployers-1.0.0.Beta22-1.noarch.rpm
torquebox-deployers-1.0.0.Beta22-1.noarch.rpm
torquebox-jruby-1.0.0.Beta22-1.noarch.rpm
[root@domU-12-31-39-0F-70-42 steamcannon-appliances]#
-bash-4.1# jruby -S rake db:setup
(in /opt/steamcannon)
Could not find RubyGem weakling (>= 0.0.3)
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems.rb:246:in `activate'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems.rb:245:in `each'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems.rb:245:in `activate'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
/opt/jruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
-bash-4.1# jruby -S gem list
*** LOCAL GEMS ***
aasm (2.1.5)
abstract (1.0.0)
actionmailer (3.0.0, 2.3.8)
actionpack (3.0.0, 2.3.8)
activemodel (3.0.0)
activerecord (3.0.0, 2.3.8)
- "su - postgres -c \"echo \"create user steamcannon with superuser password 'steamcannon'\" | psql\" "
- "su - postgres -c \"echo \\"create user steamcannon with superuser password 'steamcannon'\\" | psql\" "
12:29 mgoldmann: but don't worry - it happened to me several times
12:29 mgoldmann: :)
12:53 lanceball: mgoldmann: https://gist.github.com/6de9371f21633f83d523
12:54 lanceball: I'm going to run and get some food - will be back later to chat about this if you are still around.
12:54 lanceball: but don't feel obligated to wait for me
12:54 mgoldmann: there we go - it needs to be stareted
12:54 mgoldmann: cat this to /etc/rc.local
12:54 mgoldmann: it'll create user on boot
12:55 mgoldmann: like this:
12:55 mgoldmann: "echo '/etc/init.d/steamcannon-agent restart' >> /etc/rc.local"
>> (jruby-jruby) ~/Dev/RHT/oddthesis-private [master %] <<
$ cat ~/.aliases.bash
<snip>...</snip>
alias awssh='ssh -i /Users/lanceball/Dev/RHT/amazon/default.pem'
>> (jruby-jruby) ~/Dev/RHT/oddthesis-private [master %] <<
$ cat ~/.ssh/config
<snip>...</snip>
Host *.amazonaws.com
User root