diff --git a/README.md b/README.md index b1853d2..d410b36 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/add-iso.sh b/add-iso.sh index 9ad4c4a..b9c3904 100755 --- a/add-iso.sh +++ b/add-iso.sh @@ -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