Skip to content
Snippets Groups Projects
  • Hugo Trentesaux's avatar
    bfb85c07
    add Dockerfile (!31) · bfb85c07
    Hugo Trentesaux authored
    * working dockerfile
    
    * wip dockerfile
    
    TODO make duniter-polkadot-sdk repo lighter to avoid long download time in docker build
    
    (cherry picked from commit 5f4b716f)
    
    * update subxt and polkadot sdk
    bfb85c07
    History
    add Dockerfile (!31)
    Hugo Trentesaux authored
    * working dockerfile
    
    * wip dockerfile
    
    TODO make duniter-polkadot-sdk repo lighter to avoid long download time in docker build
    
    (cherry picked from commit 5f4b716f)
    
    * update subxt and polkadot sdk
README.md 907 B

Docker

Docker image for gcli is useful for people with docker-based infrastructure or old system with old glibc or libssl.

Build

./docker/build.sh

Use

To use gcli, run it with docker:

docker run --rm gcli

Ğcli uses folders to store config and vault. You can bind local folders to these locations:

# create folders
mkdir -p $HOME/.config/gcli/
mkdir -p $HOME/.local/share/gcli/
# run gcli in docker with there folders
docker run --rm \
--mount type=bind,src=$HOME/.config/gcli/,dst=/root/.config/gcli \
--mount type=bind,src=$HOME/.local/share/gcli/,dst=/root/.local/share/gcli \
gcli

An alias can be useful:

# define alias
alias docker_gcli="docker run --rm \
--mount type=bind,src=$HOME/.config/gcli/,dst=/root/.config/gcli \
--mount type=bind,src=$HOME/.local/share/gcli/,dst=/root/.local/share/gcli \
gcli"
# then simply call
docker_gcli --help