Things I'm learning while using Habitat, written down so I remember them.
export HAB_DOCKER_OPTS="-v /Users/nathansmith/.hab/cache/artifacts /hab/studios/src/hab/cache/artifacts"
From the core-plans directory run
find . -name plan.sh | bin/build-dependent-order.rb $pkg_origin/$pkg_name
get_script_dir () {
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$(cd -P "$( dirname "$SOURCE" )" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
(cd -P "$(dirname "$SOURCE")" && pwd)
}
(based on http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/)
# shellcheck disable=SC2002
export BUNDLE_SILENCE_ROOT_WARNING=1
rm ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
This will probably wipe out any container's you've previously downloaded. You can also try resizing this image but it's faster just to delete it.
See https://forums.docker.com/t/no-space-left-on-device-error/10894/3
When using something that does Git over HTTPS, the Git executable can't find the CA certs. Put this in your do_prepare
:
git config --global http.sslCAInfo "$(pkg_path_for cacerts)/ssl/certs/cacert.pem"
(you need a build dep on core/cacerts
)
On NPM 2 (with Node <= 4):
npm config set spin=false
On NPM 3 (with Node >= 5):
npm config set progress=false
[[ (-f /proc/1/comm) && ($(cat /proc/1/comm) = "systemd") ]]
or not systemd:
[[ (! -f /proc/1/comm) || (! $(cat /proc/1/comm) = "systemd") ]]
hab pkg exec core/net-tools netstat --tcp --udp --listening --program