[elbe-devel] [PATCH v2] quickstart: add Python's SimpleHTTPServer example

yegorslists at googlemail.com yegorslists at googlemail.com
Tue Jul 11 15:30:49 CEST 2017


From: Yegor Yefremov <yegorslists at googlemail.com>

SimpleHTTPServer provides a simple replacement for a temporary
webserver.

Also fix a typo.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
Changes:
  v1->v2:
    - change port to 8080, so that no root privileges are needed

 docs/quickstart.txt | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/docs/quickstart.txt b/docs/quickstart.txt
index ea608e5..5290254 100644
--- a/docs/quickstart.txt
+++ b/docs/quickstart.txt
@@ -213,7 +213,7 @@ ELBE Archive
 The ELBE XML file contains an archive which is extracted into the
 root-filesystem during the image generation phase.
 
-It is acessed with the following commands:
+It is accessed with the following commands:
 ------------------------------------------------------------------------------
 $ elbe get_archive fun.xml archive.tar.bz2
 ------------------------------------------------------------------------------
@@ -352,7 +352,13 @@ $ reprepro include jessie ../path/to/your/*.changes
 -------------------------------------------------------------------------------
 
 To use this repository from ELBE you need a webserver. Simply place the
-repository inside the document root of your webserver.
+repository inside the document root of your webserver. If you don't want to
+setup a full-fledged webserver you can invoke the command below from inside the
+`repo` directory to make your custom repository available on port 8080:
+
+-------------------------------------------------------------------------------
+$ python -m SimpleHTTPServer 8080
+-------------------------------------------------------------------------------
 
 If the webserver is running on the same machine as the initvm you can use the
 following to access the repository:
@@ -370,7 +376,12 @@ following to access the repository:
 
 ELBE replaces the string `LOCALMACHINE` with the ip address of your machine. If
 you use an external machine as webserver you need to replace `LOCALMACHINE` with
-the name or the ip of it.
+the name or the ip of it. If your webserver listens on a port other than 80
+you'll need to specify it after the ip address like this:
+
+-------------------------------------------------------------------------------
+<binary>http://LOCALMACHINE:8080/repo/ jessie main</binary>
+-------------------------------------------------------------------------------
 
 You need to sign your repository (see `SignWith` in the
 link:https://mirrorer.alioth.debian.org/reprepro.1.html[reprepro manpage]), or
-- 
2.11.0





More information about the elbe-devel mailing list