mirror of
https://github.com/wingrunr21/iodine-docker
synced 2024-12-19 17:12:30 -05:00
Initial commit of iodine Dockerfile
This commit is contained in:
commit
389277b175
10
CHANGELOG.md
Normal file
10
CHANGELOG.md
Normal file
@ -0,0 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
### v1.3
|
||||
* Remove copying of `authorized_keys` into image
|
||||
* Use `passenger/baseimage` v0.9.16
|
||||
* Run `apt-get update` before installing `net-tools` and `iodine`
|
||||
* Add ENV variable to configure tunnel IP
|
||||
|
||||
### v1.2
|
||||
* Initial import of [FiloSottile/Dockerfiles/iodine](https://github.com/FiloSottile/Dockerfiles/tree/master/iodine)
|
36
Dockerfile
Normal file
36
Dockerfile
Normal file
@ -0,0 +1,36 @@
|
||||
#################################################
|
||||
#
|
||||
# Iodine Dockerfile v1.3
|
||||
# http://code.kryo.se/iodine/
|
||||
#
|
||||
# Based on https://github.com/FiloSottile/Dockerfiles/blob/master/iodine/Dockerfile
|
||||
#
|
||||
# Run with:
|
||||
# sudo docker run --privileged -p 53:53/udp -e IODINE_HOST=t.example.com -e IODINE_PASSWORD=1234abc wingrunr21/iodine
|
||||
#
|
||||
#################################################
|
||||
|
||||
# Use phusion/baseimage as base image.
|
||||
FROM phusion/baseimage:0.9.16
|
||||
|
||||
MAINTAINER Stafford Brunk <stafford.brunk@gmail.com>
|
||||
|
||||
# Set environment variables and regen SSH host keys
|
||||
ENV HOME /root
|
||||
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
|
||||
|
||||
# Install iodine
|
||||
RUN apt-get update && apt-get install -y net-tools iodine
|
||||
|
||||
# Add the runit iodine service
|
||||
RUN mkdir /etc/service/iodined
|
||||
ADD iodined.sh /etc/service/iodined/run
|
||||
|
||||
# Expose the DNS port, remember to run -p 53:53/udp
|
||||
EXPOSE 53/udp
|
||||
|
||||
# Use baseimage-docker's init system.
|
||||
CMD ["/sbin/my_init"]
|
||||
|
||||
# Clean up APT when done.
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# iodine-docker
|
||||
|
||||
Docker image for [Iodine](http://code.kryo.se/iodine/)
|
||||
|
||||
## Usage
|
||||
|
||||
docker pull wingrunr21/iodine
|
||||
docker run -d --privileged -p 53:53/udp -e IODINE_HOST=t.example.com -e IODINE_PASSWORD=1234password wingrunr21/iodine
|
||||
|
||||
### Environment Variables
|
||||
* `IODINE_HOST` - the domain where your iodine server is running
|
||||
* `IODINE_PASSWORD` - the password for your iodine server
|
||||
* `IODINE_TUNNEL_IP` - the server tunnel ip. Optional and defaults to 10.0.0.1.
|
9
iodined.sh
Executable file
9
iodined.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
TUNNEL_IP=${IODINE_TUNNEL_IP:-"10.0.0.1"}
|
||||
|
||||
# Thanks to https://github.com/jpetazzo/dockvpn for the tun/tap fix
|
||||
mkdir -p /dev/net
|
||||
mknod /dev/net/tun c 10 200
|
||||
|
||||
exec iodined -c -f $TUNNEL_IP $IODINE_HOST -P $IODINE_PASSWORD >>/var/log/iodined.log 2>&1
|
Loading…
Reference in New Issue
Block a user