improvements
This commit is contained in:
parent
f6e03510fc
commit
0ff133f214
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.gz
|
*.gz
|
||||||
|
data/*
|
||||||
|
@ -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
|
FROM ubuntu:bionic
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install libx11-xcb1 libx11-6 libxcb1 libfontconfig1 libfreetype6 xkb-data libdbus-1-3
|
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/ \;
|
RUN find /opt/ -type f -name "dogecoin*" -exec ln -sv '{}' /usr/local/bin/ \;
|
||||||
COPY launch /launch
|
COPY launch /launch
|
||||||
ENTRYPOINT sh /launch
|
ENTRYPOINT sh /launch
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
## dogecoin in docker
|
## dogecoin in docker
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose build && docker-compose run --rm
|
docker-compose build && docker-compose run --rm dogecoin
|
||||||
```
|
```
|
||||||
|
0
data/.keep
Normal file
0
data/.keep
Normal file
@ -16,3 +16,5 @@ services:
|
|||||||
- /etc/machine-id:/etc/machine-id:ro
|
- /etc/machine-id:/etc/machine-id:ro
|
||||||
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
||||||
# - $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
# - $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
||||||
|
# Make .config/Dogecoin/Dogecoin-Qt.conf persistent
|
||||||
|
- ./data:/home/user
|
||||||
|
2
launch
2
launch
@ -4,6 +4,6 @@
|
|||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
[ -d /home/user ] || ARGS="-m"
|
[ -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"
|
su -l user -c "LANG=C.UTF-8 LC_ALL=C.UTF-8 dogecoin-qt"
|
||||||
|
1
sha512sum.txt
Normal file
1
sha512sum.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
c6a9f87658a72b1ad32973b2c5cec8faf64c7e18467c013782f5e808af78e140ed21329ca33189fda7e6848758a9e8e849071f5e0af374a2b09034ff8e794089 dogecoin-1.10.0-linux64.tar.gz
|
Loading…
Reference in New Issue
Block a user