first commit
This commit is contained in:
commit
f6e03510fc
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.gz
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
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
|
||||||
|
RUN find /opt/ -type f -name "dogecoin*" -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 dogecoin-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 @@
|
|||||||
|
## dogecoin in docker
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose build && docker-compose run --rm
|
||||||
|
```
|
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dogecoin:
|
||||||
|
build: .
|
||||||
|
cap_add:
|
||||||
|
- IPC_LOCK # lock memory to prevent sensitive values from being swapped to disk.
|
||||||
|
environment:
|
||||||
|
- DISPLAY=unix$DISPLAY
|
||||||
|
# - PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
||||||
|
init: true
|
||||||
|
network_mode: bridge
|
||||||
|
shm_size: 4G
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/machine-id:/etc/machine-id:ro
|
||||||
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
||||||
|
# - $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
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 dogecoin-qt"
|
Loading…
Reference in New Issue
Block a user