Refactored
This commit is contained in:
+11
-21
@@ -1,28 +1,20 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM ubuntu:jammy as base
|
FROM ubuntu:jammy as base
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
RUN apt-get upgrade
|
||||||
|
|
||||||
# Build tools
|
# Required dependencies
|
||||||
RUN apt-get install -y git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
|
RUN apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
|
||||||
|
|
||||||
# Boost libs
|
|
||||||
RUN apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
|
RUN apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
|
||||||
|
|
||||||
# Qt (required for dogecoin-qt GUI)
|
# Qt (required for dogecoin-qt GUI)
|
||||||
RUN apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5
|
RUN apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
|
||||||
RUN apt-get install -y qttools5-dev qttools5-dev-tools
|
|
||||||
|
|
||||||
# Protobuf libs
|
|
||||||
RUN apt-get install -y libprotobuf-dev
|
|
||||||
# Protobuf compiler
|
|
||||||
RUN apt-get install -y protobuf-compiler
|
|
||||||
|
|
||||||
# QR encode libs
|
|
||||||
RUN apt-get install -y libqrencode-dev
|
RUN apt-get install -y libqrencode-dev
|
||||||
|
|
||||||
|
RUN apt-get install -y libxkbcommon-x11-0 libxcb-xinerama0 libx11-xcb1 libx11-xcb-dev libqt5x11extras5
|
||||||
|
|
||||||
# BerkeleyDB (version 5.3)
|
# BerkeleyDB (version 5.3)
|
||||||
RUN apt-get install -y libdb5.3++-dev libdb5.3++ libdb5.3-dev
|
RUN apt-get install -y libdb5.3++-dev libdb5.3++ libdb5.3-dev
|
||||||
|
|
||||||
@@ -30,20 +22,18 @@ RUN apt-get install -y libdb5.3++-dev libdb5.3++ libdb5.3-dev
|
|||||||
RUN apt-get install -y libzmq3-dev
|
RUN apt-get install -y libzmq3-dev
|
||||||
|
|
||||||
# Miniupnpc
|
# Miniupnpc
|
||||||
RUN apt-get install -y libminiupnpc-dev
|
# RUN apt-get install -y libminiupnpc-dev
|
||||||
|
|
||||||
# Make and autogen
|
|
||||||
RUN apt-get install -y autogen
|
|
||||||
RUN apt-get install -y make
|
|
||||||
|
|
||||||
|
# Build tools
|
||||||
|
RUN apt-get install -y git autogen make gawk file
|
||||||
# -------------------------------------
|
# -------------------------------------
|
||||||
FROM base as sources
|
FROM base as sources
|
||||||
ADD https://github.com/dogecoin/dogecoin.git /tmp/dogecoin
|
ADD https://github.com/dogecoin/dogecoin.git /tmp/dogecoin
|
||||||
|
|
||||||
FROM sources as conf
|
FROM sources as conf
|
||||||
WORKDIR "/tmp/dogecoin"
|
WORKDIR "/tmp/dogecoin"
|
||||||
RUN ./autogen.sh
|
RUN ./autogen.sh >autogen.log
|
||||||
RUN ./configure --with-gui
|
RUN ./configure --with-gui >configure.log
|
||||||
|
|
||||||
FROM conf as make
|
FROM conf as make
|
||||||
WORKDIR "/tmp/dogecoin"
|
WORKDIR "/tmp/dogecoin"
|
||||||
|
|||||||
+6
-10
@@ -1,13 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
bail()
|
|
||||||
{
|
|
||||||
while true; do
|
|
||||||
sleep 1
|
|
||||||
done;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo Using DISPLAY $DISPLAY
|
echo Using DISPLAY $DISPLAY
|
||||||
exec dogecoin-qt
|
export XDG_RUNTIME_DIR=/tmp/runtime-doge
|
||||||
|
#export QT_QPA_PLATFORM=offscreen
|
||||||
bail
|
#export QT_X11_NO_MITSHM=1
|
||||||
|
export QT_DEBUG_PLUGINS=1
|
||||||
|
#exec dogecoin-qt
|
||||||
|
exec bash --login
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
# Run container interactive with X11
|
# Run container interactive with X11
|
||||||
# User doge
|
docker container run --rm --net bridge -e DISPLAY=$DISPLAY -v /home/jens/.dogecoin:/home/doge/.dogecoin -it dogecoin bash --login
|
||||||
#docker container run --rm --net host -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/jens/.dogecoin:/home/doge/.dogecoin --user doge -it dogecoin bash --login
|
|
||||||
# User root
|
|
||||||
docker run --rm --net host -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/jens/.dogecoin:/home/doge/.dogecoin -it dogecoin bash --login
|
|
||||||
#docker run --rm --net bridge -e DISPLAY=172.17.0.2:99 -v /home/jens/.dogecoin:/home/doge/.dogecoin -it dogecoin bash --login
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
# Run container interactive with X11
|
# Run container interactive with X11
|
||||||
#docker container run --rm --net host -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/jens/.dogecoin:/home/doge/.dogecoin --user doge -it dogecoin dogecoin-qt
|
docker container run --rm --net bridge -e DISPLAY=$DISPLAY -v /home/jens/.dogecoin:/home/doge/.dogecoin --user doge -it dogecoin
|
||||||
docker container run --rm --net bridge -e DISPLAY=$DISPLAY -v /home/jens/.dogecoin:/home/doge/.dogecoin --user doge dogecoin
|
|
||||||
|
|||||||
Reference in New Issue
Block a user