mirror of
https://github.com/yarrick/iodine.git
synced 2025-07-28 03:22:51 +02:00
feat: added docker support for both iodined (Dockerfile.server) and iodine (Dockerfile.client)
This commit is contained in:
parent
63c386d0f8
commit
8d94c7ba74
2 changed files with 62 additions and 0 deletions
31
Dockerfile.client
Normal file
31
Dockerfile.client
Normal file
|
@ -0,0 +1,31 @@
|
|||
##############
|
||||
#
|
||||
# @
|
||||
# @
|
||||
# @ @ @
|
||||
#
|
||||
##############
|
||||
|
||||
FROM alpine:3.22.0
|
||||
|
||||
RUN apk update
|
||||
RUN apk add --no-cache \
|
||||
gcc \
|
||||
git \
|
||||
make \
|
||||
pkgconfig \
|
||||
zlib-dev
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
RUN git clone https://github.com/yarrick/iodine /app/
|
||||
|
||||
RUN make
|
||||
|
||||
# iodine require /dev/net/tun from the host.
|
||||
# run the container with --device /dev/net/tun --cap-add=NET_ADMIN to allow it
|
||||
|
||||
# usage: [sudo] docker run -it --rm iodine -f -r 192.168.0.1 -P "password" test.com
|
||||
|
||||
ENTRYPOINT [ "/app/bin/iodine" ]
|
||||
CMD [ "-h" ]
|
31
Dockerfile.server
Normal file
31
Dockerfile.server
Normal file
|
@ -0,0 +1,31 @@
|
|||
##############
|
||||
#
|
||||
# @
|
||||
# @
|
||||
# @ @ @
|
||||
#
|
||||
##############
|
||||
|
||||
FROM alpine:3.22.0
|
||||
|
||||
RUN apk update
|
||||
RUN apk add --no-cache \
|
||||
gcc \
|
||||
git \
|
||||
make \
|
||||
pkgconfig \
|
||||
zlib-dev
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
RUN git clone https://github.com/yarrick/iodine /app/
|
||||
|
||||
RUN make
|
||||
|
||||
# iodine require /dev/net/tun from the host.
|
||||
# run the container with --device /dev/net/tun --cap-add=NET_ADMIN to allow it
|
||||
|
||||
# usage: [sudo] docker run -it --rm iodined -f 10.0.0.1 -P "password" test.com
|
||||
|
||||
ENTRYPOINT [ "/app/bin/iodined" ]
|
||||
CMD [ "-h" ]
|
Loading…
Add table
Reference in a new issue