A zsh-workenv template for resin.io development.
Create a new working environment using this repository as the template
WENV_TEMPLATE="https://github.com/wrboyce/resin-workenv-template.git" mkwenv <wenv-name> [wenv-project]
Automatic environment switching and token handling for resin-cli
.
env-url
is optional if env-name
is one of prod
, stag
, or dev
.
Update resin-cli
to the specified version. If no version is specified, update to the latest master build.
Search the resin wiki. If the first argument is numeric it will be treated as a context argument.
Wrapper around the import-images
tool, automatically providing jenkins credentials.
Shortcut to resin
.
Shortcuts to edit/diff the resin-containers/docker-compose.yml
file.
Shortcut for running vagrant
commands against resin-containers
guest.
Run cmd
on the resin-containers
vagrant guest.
Shortcut for running docker-compose
on the resin-containers
vagrant guest, supports two
convenience commands:
Shortcut for vdc pull && vdc up --daemon
Shortcut for vdc up --daemon --build
Shortcut for running enter
on the vagrant guest.
Shortcut for viewing Docker logs from within the vagrant guest.
Config goes in ${WORK_ENV}/config
Default: ${WENV_PROJ}
Default: ${RESIN_ROOT}/cli
Default: ${RESIN_ROOT}/containers
Default: ${RESIN_ROOT}/hq.wiki
Default: rg
The grep
-style command used for searching the wiki, defaults to ripgrep
.
Default: none
Used by the resin-containers Vagrantfile
to specify guest configurations.
Used by import-images
when grabbing device images from Jenkins.
Default: $(whoami)
Default: none