Skip to content

mvo5/oaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osbuild-as-a-service

Day of learning trivial go webservice.

To test:

$ go test ./...

to run

$ cd cmd/oaas/
$ go build && sudo ./oaas -build-path /var/tmp/my-build

then from the client:

$ echo '{"exports": ["image"]}' > control.json
$ cp /path/to/you/manifest.json manifest.json
$ tar cvf test.tar control.json manifest.json
$ curl -o - --data-binary "@./test.tar" -H "Content-Type: application/x-tar"  -X POST http://localhost:8001/api/v1/build
[output]
$ curl -o disk.img http://localhost:8001/api/v1/result/image/disk.img

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages