Update iso tools

This commit is contained in:
dave 2019-04-07 15:04:15 -07:00
parent 24bad32cc4
commit 6dda46b064
2 changed files with 11 additions and 5 deletions

View File

@ -3,6 +3,7 @@ kickstart-builder
Automated ISO builder for kickstart-based installation CDs
Setup:
-----
@ -10,11 +11,14 @@ Setup:
* Install requirements:
* `pip3 install -r requirements.txt`
* `apt-get install -y bsdtar genisoimage`
* `python3 setup.py install`
* (you could use the Dockerfile instead)
* Prepare at least one ISO (see below)
* Start it
* `python3 main.py`
* `PORT=8087 DATADIR=./isos isoserverd`
* In your browser, visit http://127.0.0.1:8087/
Adding ISOs
-----------
@ -24,7 +28,7 @@ can be written to. Refer to the example commands below:
```
cd iso_raws
cd isos
mkdir ubuntu-16.04.1-server-amd64
cd ubuntu-16.04.1-server-amd64
bsdtar xfp ~/Downloads/ubuntu-16.04.1-server-amd64.iso
@ -38,6 +42,7 @@ Alternatively, the script `add-iso.sh` can be used to add an ISO:
./add-iso.sh ~/Downloads/ubuntu-16.04.1-server-amd64.iso
```
Development Tips
----------------
@ -45,7 +50,8 @@ In normal operation, the application loads templates and configs once on startup
variable is set, it will reload the templates and configs on every page load:
```
REFRESH=1 python3 main.py
python3 setup.py develop
REFRESH=1 PORT=8080 DATADIR=./isos isoserverd
```
Additional config templates can be added under the "samples" directory.

View File

@ -4,8 +4,8 @@ ISO_PATH="$1"
ISO_NAME="$(basename $1 | sed -E 's/\.iso$//' )"
mkdir iso_raws/$ISO_NAME
cd iso_raws/$ISO_NAME
mkdir isos/$ISO_NAME
cd isos/$ISO_NAME
bsdtar xfp $ISO_PATH