improvements

This commit is contained in:
Andy 2018-12-26 14:48:53 +01:00
parent f6e03510fc
commit 0ff133f214
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C
7 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.gz
data/*

View File

@ -1,7 +1,13 @@
FROM alpine:latest
RUN wget https://github.com/dogecoin/dogecoin/releases/download/v1.10.0/dogecoin-1.10.0-linux64.tar.gz
COPY sha512sum.txt /tmp/
RUN sha512sum -c /tmp/sha512sum.txt
FROM ubuntu:bionic
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install libx11-xcb1 libx11-6 libxcb1 libfontconfig1 libfreetype6 xkb-data libdbus-1-3
ADD dogecoin-1.10.0-linux64.tar.gz /opt
COPY --from=0 dogecoin-1.10.0-linux64.tar.gz .
RUN tar xf dogecoin-1.10.0-linux64.tar.gz -C /opt
RUN find /opt/ -type f -name "dogecoin*" -exec ln -sv '{}' /usr/local/bin/ \;
COPY launch /launch
ENTRYPOINT sh /launch

View File

@ -1,5 +1,5 @@
## dogecoin in docker
```
docker-compose build && docker-compose run --rm
docker-compose build && docker-compose run --rm dogecoin
```

0
data/.keep Normal file
View File

View File

@ -16,3 +16,5 @@ services:
- /etc/machine-id:/etc/machine-id:ro
- /tmp/.X11-unix:/tmp/.X11-unix:ro
# - $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
# Make .config/Dogecoin/Dogecoin-Qt.conf persistent
- ./data:/home/user

2
launch
View File

@ -4,6 +4,6 @@
exec 2>&1
[ -d /home/user ] || ARGS="-m"
id user >/dev/null 2>&1 || useradd -s /bin/bash "${ARGS}" -d /home/user -u ${USER_ID:-1000} user
id user >/dev/null 2>&1 || useradd -s /bin/bash ${ARGS} -d /home/user -u ${USER_ID:-1000} user
su -l user -c "LANG=C.UTF-8 LC_ALL=C.UTF-8 dogecoin-qt"

1
sha512sum.txt Normal file
View File

@ -0,0 +1 @@
c6a9f87658a72b1ad32973b2c5cec8faf64c7e18467c013782f5e808af78e140ed21329ca33189fda7e6848758a9e8e849071f5e0af374a2b09034ff8e794089 dogecoin-1.10.0-linux64.tar.gz