From 02c42eb3823538adc438dc1b04424a2f98adc1af Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 2 Dec 2024 17:31:43 +0800 Subject: [PATCH] add iventoy --- README.md | 1 + iventoy/Dockerfile | 25 +++++++++++++++++++++++++ iventoy/README.md | 6 ++++++ iventoy/docker-compose.yml | 9 +++++++++ 4 files changed, 41 insertions(+) create mode 100644 iventoy/Dockerfile create mode 100644 iventoy/README.md create mode 100644 iventoy/docker-compose.yml diff --git a/README.md b/README.md index 7fd7196..cfa194b 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ A collection of delicious docker recipes. - [x] ~hass~ - [x] flashmq - [x] hbdg +- [x] iventoy :cn: - [x] node-red :+1: - [x] mqtt-io-arm - [x] mosquitto :+1: diff --git a/iventoy/Dockerfile b/iventoy/Dockerfile new file mode 100644 index 0000000..96fb096 --- /dev/null +++ b/iventoy/Dockerfile @@ -0,0 +1,25 @@ +# +# Dockerfile for iventoy +# + +FROM ubuntu:bookworm + +ARG IVENTOY_VERSION=1.0.20 +ARG IVENTOY_FILE=iventoy-$IVENTOY_VERSION-linux-free.tar.gz +ARG IVENTOY_URL=https://github.com/ventoy/PXE/releases/download/v$IVENTOY_VERSION/$IVENTOY_FILE + +WORKDIR /opt/iventoy + +RUN set -xe \ + && apt update -y \ + && apt install -y curl \ + && curl -sSL $IVENTOY_URL | tar xz --strip 1 \ + && apt remove -y curl \ + && rm -rf /var/lib/apt/lists/* + +ENV IVENTOY_API_ALL=1 +ENV IVENTOY_AUTO_RUN=1 + +EXPOSE 67/udp 68/udp 69/udp 10809 16000 26000 + +CMD ./lib/iventoy && sleep inf diff --git a/iventoy/README.md b/iventoy/README.md new file mode 100644 index 0000000..309c652 --- /dev/null +++ b/iventoy/README.md @@ -0,0 +1,6 @@ +iventoy +======= + +[iVentoy][1] is an enhanced version of the PXE server. + +[1]: https://www.iventoy.com/en/index.html diff --git a/iventoy/docker-compose.yml b/iventoy/docker-compose.yml new file mode 100644 index 0000000..3167a50 --- /dev/null +++ b/iventoy/docker-compose.yml @@ -0,0 +1,9 @@ +services: + iventoy: + image: vimagick/iventoy + volumes: + - ./data/iso:/opt/iventoy/iso + - ./data/log:/opt/iventoy/log + network_mode: host + privileged: true + restart: unless-stopped