mirror of
https://github.com/yarrick/iodine.git
synced 2025-07-27 19:12:50 +02:00
Merge 386a2b9f77
into 63c386d0f8
This commit is contained in:
commit
4efc17bf91
2 changed files with 86 additions and 0 deletions
43
docker/Dockerfile.client
Normal file
43
docker/Dockerfile.client
Normal file
|
@ -0,0 +1,43 @@
|
|||
##############
|
||||
#
|
||||
# @
|
||||
# @
|
||||
# @ @ @
|
||||
#
|
||||
##############
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y \
|
||||
gcc \
|
||||
git \
|
||||
libz-dev \
|
||||
make \
|
||||
pkg-config
|
||||
|
||||
RUN apt-get clean
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY . /app/
|
||||
|
||||
RUN make
|
||||
|
||||
# build command (at repo root): [sudo] docker build -t iodine -f docker/Dockerfile.client .
|
||||
|
||||
# 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 \
|
||||
# --device /dev/net/tun \
|
||||
# --cap-add=NET_ADMIN \
|
||||
# iodine -f -r 192.168.0.1 -P "password" test.com
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
COPY --from=0 /app/bin/iodine /iodine
|
||||
|
||||
ENTRYPOINT [ "/iodine" ]
|
||||
CMD [ "-h" ]
|
43
docker/Dockerfile.server
Normal file
43
docker/Dockerfile.server
Normal file
|
@ -0,0 +1,43 @@
|
|||
##############
|
||||
#
|
||||
# @
|
||||
# @
|
||||
# @ @ @
|
||||
#
|
||||
##############
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y \
|
||||
gcc \
|
||||
git \
|
||||
libz-dev \
|
||||
make \
|
||||
pkg-config
|
||||
|
||||
RUN apt-get clean
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY . /app/
|
||||
|
||||
RUN make
|
||||
|
||||
# build command (at repo root): [sudo] docker build -t iodined -f docker/Dockerfile.server .
|
||||
|
||||
# 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 \
|
||||
# --device /dev/net/tun \
|
||||
# --cap-add=NET_ADMIN \
|
||||
# iodined -f 10.0.0.1 -P "password" test.com
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
COPY --from=0 /app/bin/iodined /iodined
|
||||
|
||||
ENTRYPOINT [ "/iodined" ]
|
||||
CMD [ "-h" ]
|
Loading…
Add table
Reference in a new issue