Commit 213c0038 authored by Stefan Scherer's avatar Stefan Scherer

Remove http

parent d5a97e68
# http cache
Packer is able to start an HTTP server, but the variables for IP and port are only available while running the boot command.
So we have to run another HTTP server.
This http cache directory is used to speed up the installation of the
## Build the cache
$ curl -L -o ContainerOSImage
## Run the http cache server
$ go build webserver.go
$ ./webserver
As an alternative you might try this HTTP server
python -m SimpleHTTPServer 8000
## Build the packer box
$ cd ..
$ packer build --only=vmware-iso windows_2016.json
package main
import (
func main() {
http.Handle("/", http.StripPrefix("/", http.FileServer(http.Dir("."))))
if err := http.ListenAndServe(":8000", nil); err != nil {
log.Fatal("ListenAndServe: ", err)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment