dkr002 - Docker image for Zenith GUI

First commit
This commit is contained in:
Rene V. Vergara A. 2024-06-21 11:28:40 -04:00
parent 307f9ac8d7
commit a6fb08cded
5 changed files with 28 additions and 7 deletions

View file

@ -200,7 +200,7 @@ processUri user pwd =
main :: IO () main :: IO ()
main = do main = do
config <- load ["zenith.cfg"] config <- load ["/home/zenith/zenith.cfg"]
args <- getArgs args <- getArgs
dbFilePath <- require config "dbFilePath" dbFilePath <- require config "dbFilePath"
nodeUser <- require config "nodeUser" nodeUser <- require config "nodeUser"

View file

@ -3,10 +3,31 @@ MAINTAINER Rene V. Vergara A. <rvergara59@kprotonmail.com>
RUN apt update RUN apt update
RUN apt -y install libxss-dev # Set environment variables to non-interactive mode for installation
RUN apt -y install libxrandr-dev ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y install libsecp256k1-dev
RUN apt -y install xclip # Update the package list and install necessary packages
RUN apt-get update && apt-get install -y \
sudo \
xfce4 \
xfce4-goodies \
x11vnc \
xvfb \
novnc \
net-tools \
curl \
wget \
vim \
git
RUN apt-get install -y \
libxss-dev \
libxrandr-dev \
libsecp256k1-dev \
xclip
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /home/zenith RUN mkdir /home/zenith
RUN useradd -ms /bin/bash zenusr RUN useradd -ms /bin/bash zenusr

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
ZFOLDER=~/Public/zenith ZFOLDER=~/Public/zenith
IMAGE_NAME=zenith-docker:0.5.3.0 IMAGE_NAME=zenith-docker-gui:0.5.3.0
# Check if data folder exists # Check if data folder exists
if [ ! -d "$ZFOLDER" ]; then if [ ! -d "$ZFOLDER" ]; then

Binary file not shown.

View file

@ -1287,7 +1287,7 @@ sendTransaction pool chan zHost zPort znet accId bl amt ua memo = do
BC.writeBChan chan $ TickMsg "Preparing transaction..." BC.writeBChan chan $ TickMsg "Preparing transaction..."
outUA <- parseAddress ua outUA <- parseAddress ua
res <- res <-
runFileLoggingT "zenith.log" $ runFileLoggingT "/home/zenith/zenith.log" $
prepareTx pool zHost zPort znet accId bl amt outUA memo prepareTx pool zHost zPort znet accId bl amt outUA memo
BC.writeBChan chan $ TickMsg "Transaction ready, sending to Zebra..." BC.writeBChan chan $ TickMsg "Transaction ready, sending to Zebra..."
case res of case res of