diff --git a/app/Main.hs b/app/Main.hs index daade67..a652534 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -200,7 +200,7 @@ processUri user pwd = main :: IO () main = do - config <- load ["zenith.cfg"] + config <- load ["/home/zenith/zenith.cfg"] args <- getArgs dbFilePath <- require config "dbFilePath" nodeUser <- require config "nodeUser" diff --git a/docker_files/Dockerfile b/docker_files/Dockerfile index 27f33a1..35d6173 100644 --- a/docker_files/Dockerfile +++ b/docker_files/Dockerfile @@ -3,10 +3,31 @@ MAINTAINER Rene V. Vergara A. RUN apt update -RUN apt -y install libxss-dev -RUN apt -y install libxrandr-dev -RUN apt -y install libsecp256k1-dev -RUN apt -y install xclip +# Set environment variables to non-interactive mode for installation +ENV DEBIAN_FRONTEND=noninteractive + +# 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 useradd -ms /bin/bash zenusr diff --git a/docker_files/runzenith b/docker_files/runzenith index 61984ea..4c7dfef 100755 --- a/docker_files/runzenith +++ b/docker_files/runzenith @@ -1,6 +1,6 @@ #!/bin/bash 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 if [ ! -d "$ZFOLDER" ]; then diff --git a/docker_files/zenith b/docker_files/zenith index 93d5e1a..10c1810 100755 Binary files a/docker_files/zenith and b/docker_files/zenith differ diff --git a/src/Zenith/CLI.hs b/src/Zenith/CLI.hs index cfef49d..92adc02 100644 --- a/src/Zenith/CLI.hs +++ b/src/Zenith/CLI.hs @@ -1287,7 +1287,7 @@ sendTransaction pool chan zHost zPort znet accId bl amt ua memo = do BC.writeBChan chan $ TickMsg "Preparing transaction..." outUA <- parseAddress ua res <- - runFileLoggingT "zenith.log" $ + runFileLoggingT "/home/zenith/zenith.log" $ prepareTx pool zHost zPort znet accId bl amt outUA memo BC.writeBChan chan $ TickMsg "Transaction ready, sending to Zebra..." case res of