Jump to content
Sign in to follow this  
buzzkillb

Playing Around with Dockerized QT Wallet

Recommended Posts

So I made this https://github.com/buzzkillb/denariusQTdocker

with a command line script of this

#!/bin/bash
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker-xauth
mkdir -p ${HOME}/.denarius
xauth nlist ${DISPLAY} | sed -e 's/^..../ffff/' | xauth -f ${XAUTH} nmerge -
docker run -ti --rm -e "XAUTHORITY=${XAUTH}" -e "DISPLAY=${DISPLAY}" -v ${HOME}/.denarius:/denarius -v ${XAUTH}:${XAUTH} -v ${XSOCK}:${XSOCK} --name="denarius-qt-d" --user="${UID}:${GID}" buzzkillb/denariusqt:latest

Which the QT works on Ubuntu 19.04

Going to throw a bunch of random ideas on how to run this on other os's in here.


Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

From here https://fredrikaverpil.github.io/2016/07/31/docker-for-mac-and-gui-applications/

install docker on MacOS
Install xquartz

brew cask install xquartz

Download Docker for Mac 1.12 stable from https://docs.docker.com/docker-for-mac/, install and run.

Run Xquartz in bash

open -a XQuartz

allow network connections from clients in security tab

Then this to allow connections from local machine

ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip

then run docker qt line

docker run -d --name denariusqt -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix buzzkillb/denariusqt:latest

will also want to add volumes to keep the chaindata directory and wallet outside of the container and on host machine

typically located here /Library/Application Support/Denarius

so the below, something like this to run the QT in MacOS

docker run -d --name denariusqt -e DISPLAY=$ip:0 -v `/Library/Application Support/Denarius`:/denarius -v /tmp/.X11-unix:/tmp/.X11-unix buzzkillb/denariusqt:latest

 


Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...