/docker-obyte-testnet-wallet

Docker image for the Byteball testnet wallet

Primary LanguageDockerfileMIT LicenseMIT

docker-obyte-testnet-wallet

Docker image for the Obyte testnet wallet

Usage

The simplest way to create the docker image is below.

$ docker build -t obyte-testnet-wallet .

As this is a GUI app, you need some tricks to be able to draw on your display. This is how you can run this container to quickly check if it works (note: the --rm flag is gonna delete the container after exiting the app):

$ docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix obyte-testnet-wallet

A more practical approach is to use a volume to keep your wallet data reusable and save the docker command as an alias so you don't have to retype the long list of parameters every time. This also allows you to use the latest wallet image every time you launch the wallet.

$ alias obyte-testnet-wallet='docker run -d --rm --name obyte-testnet-wallet -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v obyte-testnet-wallet:/obyte obyte-testnet-wallet'
$ obyte-testnet-wallet

This approach also assumes that the user you are logged in on your docker host machine has a uid=1000. There is a fix to support any uids but I haven't implemented it yet.

If you want to log in and look around inside the container as root you can do this:

$ docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -u root obyte-testnet-wallet /bin/bash

The wallet is installed in the home of the obyte user in the /home/obyte/obyte-gui-wallet folder. You can easily switch to that user with su - obyte.