Auto start pxe service

Added env
True by default
pull/4/head
zidesm 8 months ago
parent db95169d1e
commit 9a6ecb0fe4

@ -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

@ -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.

@ -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

@ -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
Loading…
Cancel
Save