Merge pull request #4 from ziggyds/auto-start-pxe-sersvice

Auto start pxe service
This commit is contained in:
zidesm 2023-09-23 19:58:10 +02:00 committed by GitHub
commit 64817c8169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 6 deletions

View File

@ -10,6 +10,7 @@ RUN echo ${IVENTOY} && \
# Build image
FROM ubuntu:22.04
ENV AUTO_START_PXE=true
WORKDIR /app
# Copy iventoy
COPY --from=init /iventoy/iventoy /app

View File

@ -29,6 +29,8 @@ services:
- /<path to isos>:/iventoy/iso
- /<path to config>:/iventoy/data
- /<path to logs>:/iventoy/log
environment:
- AUTO_START_PXE=true # optional, true by default
```
Not necessary to expose all the listed ports.

View File

@ -9,14 +9,23 @@ services:
- 16000:16000
- 26000:26000
volumes:
- /ISO_PATH:/iventoy/iso
- isos:/iventoy/iso
- config:/app/data
environment:
- AUTO_START_PXE=true
iventoy-build:
build:
build:
context: .
dockerfile: Dockerfile
labels:
IVENTOY: 1.0.17
IVENTOY: 1.0.19
args:
IVENTOY: 1.0.17
IVENTOY: 1.0.19
volumes:
isos:
external: true
config:
external: true

View File

@ -1,6 +1,9 @@
#!/bin/sh
cd /app
./iventoy.sh start
if $AUTO_START_PXE; then
./iventoy.sh -R start
else
./iventoy.sh start
fi
sleep 5
tail -f log/log.txt