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

Remove http

parent d5a97e68
ContainerOSImage
webserver
ContainerOSImage.wim
# 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 https://aka.ms/ContainerOSImage
## Build the cache
```
$ curl -L -o ContainerOSImage https://aka.ms/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 (
"log"
"net/http"
)
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