first commit
This commit is contained in:
commit
1fe9291464
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.gz
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM alpine:latest
|
||||
RUN wget https://bitcoin.org/bin/bitcoin-core-0.17.1/bitcoin-0.17.1-x86_64-linux-gnu.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
|
||||
COPY --from=0 bitcoin-0.17.1-x86_64-linux-gnu.tar.gz .
|
||||
RUN tar xf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz -C /opt
|
||||
RUN find /opt/ -type f -name "bitcoin*" -exec ln -sv '{}' /usr/local/bin/ \;
|
||||
COPY launch /launch
|
||||
ENTRYPOINT sh /launch
|
||||
LABEL maintainer="Andrey Arapov <andrey.arapov@nixaid.com>"
|
11
EXTRA.md
Normal file
11
EXTRA.md
Normal file
@ -0,0 +1,11 @@
|
||||
## Extra
|
||||
|
||||
Mostly notes for myself.
|
||||
|
||||
```
|
||||
find /opt/ -xdev -type f -execdir sh -c "ldd '{}' | grep 'not found'" \; | awk '{print $1}' | sort | uniq | tr '\n' ',' ; echo
|
||||
|
||||
dpkg -S /usr/lib/x86_64-linux-gnu/{libX11-xcb.so.1,libX11.so.6} | cut -f1 -d: | xargs
|
||||
|
||||
lsof -Pn -p $(pidof bitcoin-qt) 2>/dev/null | grep -w REG | awk '{print $8}' | xargs dpkg -S 2>/dev/null | cut -f1 -d: | sort | uniq | xargs
|
||||
```
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
## bitcoin in docker
|
||||
|
||||
```
|
||||
docker-compose build && docker-compose up
|
||||
```
|
2
data/.gitignore
vendored
Normal file
2
data/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
bitcoin:
|
||||
build: .
|
||||
cap_add:
|
||||
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
|
||||
environment:
|
||||
- DISPLAY=unix$DISPLAY
|
||||
- USER_ID=1000
|
||||
init: true
|
||||
network_mode: bridge
|
||||
shm_size: 4G
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
||||
# Make .config/Dogecoin/Dogecoin-Qt.conf persistent
|
||||
- ./data:/home/user
|
||||
- /WD4Gpool/bitcoin:/data
|
9
launch
Normal file
9
launch
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Make errors visible upon `docker logs -f` command
|
||||
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
|
||||
|
||||
su -l user -c "LANG=C.UTF-8 LC_ALL=C.UTF-8 bitcoin-qt"
|
1
sha512sum.txt
Normal file
1
sha512sum.txt
Normal file
@ -0,0 +1 @@
|
||||
2870214da4e84b51b3b0ee4874e3461e2b540eaccad6a55a68412e69cdb09e57f6f2c60271eab26a90cdfb8452a50f84e61bf77f5b277d625642d48201973b39 bitcoin-0.17.0.1-x86_64-linux-gnu.tar.gz
|
Loading…
Reference in New Issue
Block a user