Skip to content

Instantly share code, notes, and snippets.

@tduffield
tduffield / hab-pkg-export.log
Created April 25, 2019 14:42
Output of `hab pkg export docker` failing to respect `HAB_BLDR_CHANNEL`
[10][default:/src:130]# HAB_NONINTERACTIVE=true HAB_NOCOLORING=true RUST_LOG=debug RUST_BACKTRACE=1 HAB_BLDR_CHANNEL=buildkite-0181407b-3568-49cb-ab8f-49f52079516b hab pkg export docker chefops/learnchef-backend
[2019-04-25T14:42:10Z DEBUG habitat_common::ui] UI { shell: Shell { input: InputStream { isatty: false }, out: OutputStream { coloring: Never, isatty: false }, err: OutputStream { coloring: Never, isatty: false } } }
[2019-04-25T14:42:10Z DEBUG habitat_core::os::process::imp] Calling execvp(): ("/hab/pkgs/core/hab-pkg-export-docker/0.79.1/20190410224936/bin/hab-pkg-export-docker") ["chefops/learnchef-backend"]
[2019-04-25T14:42:10Z DEBUG habitat_common::ui] UI { shell: Shell { input: InputStream { isatty: false }, out: OutputStream { coloring: Never, isatty: false }, err: OutputStream { coloring: Never, isatty: false } } }
[2019-04-25T14:42:10Z DEBUG hab_pkg_export_docker] clap cli args: ArgMatches { args: {"PKG_IDENT_OR_ARTIFACT": MatchedArg { occurs: 1, indices: [1], vals: ["chefops/learnchef-backen
hab-studio: Creating Studio at /hab/studios/src (default)
hab-studio: Importing chef-es secret origin key
» Importing origin key from standard input
★ Imported secret origin key chef-es-20160623231409.
hab-studio: Entering Studio at /hab/studios/src (default)
hab-studio: Exported: HAB_ORIGIN=chef-es
hab-studio: Exported: HAB_STUDIO_SUP=0
hab-studio: Exported: no_proxy=*.local, 169.254/16
[1][default:/src:0]# build .
@tduffield
tduffield / gist:28acb12ae85816c7563e8ad4bf2f77c3
Created October 16, 2017 20:24
October 16, 2017 3:23 PM - dep failures
[1][default:/src:0]# build .
: Loading /src/habitat/plan.sh
lita: Plan loaded
lita: Validating plan metadata
lita: hab-plan-build setup
lita: Writing pre_build file
lita: Using HAB_BIN=/hab/pkgs/core/hab/0.34.1/20171002002928/bin/hab for installs, signing, and hashing
lita: Resolving build dependencies
» Installing core/make from channel 'stable'
→ Using core/make/4.2.1/20170513214620
Sep 29 13:43:02 ip-172-22-56-196 lita lita[25386]: hab-sup(SU): Updating from chef-es/lita/0.5.23/20170928183243 to chef-es/lita/0.5.26/20170929183555
Sep 29 13:43:02 ip-172-22-56-196 lita lita[25386]: hab-sup(SU): Downloading chef-es/lita/0.5.26/20170929183555
Sep 29 13:43:04 ip-172-22-56-196 lita lita[25386]: hab-sup(SU): Installing chef-es/lita/0.5.26/20170929183555
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(SR): Updating service chef-es/lita/0.5.23/20170928183243 to chef-es/lita/0.5.26/20170929183555
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(O): [2017-09-29 18:43:05 UTC] INFO: Disconnected from Slack.
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(HK): run, compiled to /hab/svc/lita/hooks/run
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(HK): Hooks compiled
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(SR): Hooks recompiled
Sep 29 13:43:05 ip-172-22-56-196 lita lita[25386]: lita.default(SR): Initializi
@tduffield
tduffield / download
Last active September 22, 2016 15:47
ChefDK Download Script - Download Chef Software Packages
#!/usr/bin/env ruby
require 'mixlib/install'
require 'mixlib/cli'
require 'mixlib/shellout'
class Download
include Mixlib::CLI
option :target,
@tduffield
tduffield / Vagrantfile
Last active January 2, 2016 02:49 — forked from leifg/Vagrantfile
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
unless File.exist?(file_to_disk)
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
end
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
# Your other Vagrantfile contents here.
ixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: {error_logger,{{2013,12,11},{23,3,31}},"Too short cookie string",[]}
{error_logger,{{2013,12,11},{23,3,31}},crash_report,[[{initial_call,{auth,init,['Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Too short cookie string",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.17.0>]},{dictionary,[]},{trap_exit,true},{status,runn
@tduffield
tduffield / motd_recipes_default.rb
Created December 4, 2013 14:11
Cross-platform implementation of MOTD
#
# Cookbook Name:: motd
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
if platform?('windows')
@tduffield
tduffield / httpd.conf
Created December 3, 2013 23:26
Windows-specific httpd.conf cookbook file
# This file is managed by Chef
# All changes made locally could and will be overwritten by the client
# You are warned
ServerRoot "c:/Apache2.2"
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
@tduffield
tduffield / a2ensite.erb
Created December 3, 2013 23:26
Windows-specific implementation of a2ensite executable
!/bin/sh -e
SYSCONFDIR='C:/Apache2.2'
if [ -z $1 ]; then
echo "Which site would you like to enable?"
echo -n "Your choices are: "
ls "$SYSCONFDIR"/sites-available/* | \
sed -e "s,$SYSCONFDIR/sites-available/,,g" | xargs echo
echo -n "Site name? "