basic setup

This commit is contained in:
Eris 2020-03-16 00:32:54 +01:00
commit a651af63df
3 changed files with 35 additions and 0 deletions

13
docker-compose.yml Normal file
View 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
View 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"]

View 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