basic setup
This commit is contained in:
commit
a651af63df
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: '3'
|
||||
services:
|
||||
|
||||
gnutella-server:
|
||||
build: docker
|
||||
ports:
|
||||
- "22271:22271/tcp"
|
||||
- "5903:5900/tcp"
|
||||
volumes:
|
||||
- ./downloads:/home/nya/gtl-gnutella-downloads
|
||||
- ./config:/home/nya/.gtk-gnutella/
|
||||
container_name: gnutella_server
|
||||
#restart: always
|
13
docker/Dockerfile
Normal file
13
docker/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM debian:unstable-slim
|
||||
RUN apt update && apt-get -y install wget unzip bash make gcc glibc-source gtk+2.0 gtk+2.0-dev zlib1g zlib1g-dev libgnutls28-dev xvfb x11vnc && rm -rf /var/lib/apt/lists/*
|
||||
RUN mkdir /app; \
|
||||
wget -O /app/src.zip https://codeload.github.com/gtk-gnutella/gtk-gnutella/zip/master; \
|
||||
cd /app && \
|
||||
unzip src.zip && \
|
||||
cd gtk-gnutella-master && \
|
||||
./build.sh --cc=gcc --gtk2 --disable-dbus && \
|
||||
make install
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
RUN chmod +x /docker-entrypoint.sh && useradd -m -u 1010 nya
|
||||
USER nya
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
9
docker/docker-entrypoint.sh
Normal file
9
docker/docker-entrypoint.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
|
||||
Xvfb :99 -screen 0 1650x1050x24 &
|
||||
x11vnc -display :99 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop Gnutella-Gtk -cursor arrow -shared -passwd 23eris42 &
|
||||
sleep 5
|
||||
export DISPLAY=:99.0
|
||||
export XAUTHORITY=~/.Xauthority
|
||||
gtk-gnutella --geometry 1650x1050
|
Loading…
Reference in a new issue