Browse Source

1.0.0 Addition

master
TiynGER 1 year ago
commit
01e97a2839
4 changed files with 43 additions and 0 deletions
  1. +19
    -0
      Dockerfile
  2. +16
    -0
      README.md
  3. +1
    -0
      VERSION.txt
  4. +7
    -0
      run.sh

+ 19
- 0
Dockerfile

@ -0,0 +1,19 @@
FROM ubuntu
MAINTAINER mail@martenkante.de
ENV SERVER_NAME localhost
RUN apt-get update
RUN apt-get install pygopherd -y
ADD run.sh /
RUN chmod +x run.sh
VOLUME /var/gopher
EXPOSE 70
CMD ["./run.sh"]

+ 16
- 0
README.md

@ -0,0 +1,16 @@
#DockerGopherServer
This is a dockerized version of a gopher server.
##Environment-variables
Set the following variables with the -e tag.
| Name | Usage | Default |
| ------------- | ----- | ------- |
| SERVER_NAME | set this to your IP/DOMAIN (no "gopher://" needed!) | localhost |
##example build/run-command
``` docker build -t gopherserver . ```
``` docker run -d -v gophermartenkante:/var/gopher -p 70:70 --restart unless-stopped -e SERVER_NAME='martenkante.de' --name gophermartenkante gopherserver ```

+ 1
- 0
VERSION.txt

@ -0,0 +1 @@
1.0.0

+ 7
- 0
run.sh

@ -0,0 +1,7 @@
#!/bin/bash
sed -i '30i servername='$SERVER_NAME /etc/pygopherd/pygopherd.conf
/etc/init.d/pygopherd start
while true; do sleep 1000; done

Loading…
Cancel
Save