This tutorial heavily depends on direnv
. Skip this section if you have it installed and configured
brew install direnv
sudo apt-get update
sudo apt-get install -y direnv
sudo pacman -Rcns direnv
Detect your shell
echo "$SHELL"
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
echo '>direnv hook fish | source' >> ~/.config/fish/config.fish
echo 'eval `direnv hook tcsh`' >> ~/.cshrc
!!! Reload shell after hook installation
Tutorial requires make
to be installed on your system
git clone https://github.com/ovrclk/edgenet-environment.git
cd edgenet-environment
Run following command to permit direnv. it needs to be done just once (see #updating-environment) This will automatically set up all required directories, download binaries and update PATH
direnv allow
Both akash
and provider-services
binaries will be available in edgenet-environment
directory. Don't need to put current path prefix ./
to execute them. For example
akash version
it will execute akash
binary located in .cache/bin
. Same applies to the provider-services
.env
file can be edited with extra environment variable like AKASH_NODE
etc.
Each update will prompt to run direnv allow
!!!Upon first call to direnv it will generate default key test
Use akash
executable ONLY to manage keys. For example
akash keys add test
Use provider-services
to create deployment and lease transactions as well as sending manifest and checking lease status
provider-services tx deployment create <your deployment.yaml> --from=test
provider-services tx lease-create ...
provider-services send-manifest <your deployment.yaml> --from=test