2016-03-26 02:38:00 +03:00
|
|
|
package oci
|
|
|
|
|
|
|
|
import (
|
2016-06-07 10:45:21 +03:00
|
|
|
"runtime"
|
|
|
|
|
2016-08-17 19:38:34 +03:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
2016-03-26 02:38:00 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// DefaultSpec returns default oci spec used by docker.
|
|
|
|
func DefaultSpec() specs.Spec {
|
2016-06-07 10:45:21 +03:00
|
|
|
s := specs.Spec{
|
|
|
|
Version: "0.6.0",
|
|
|
|
Platform: specs.Platform{
|
|
|
|
OS: "SunOS",
|
|
|
|
Arch: runtime.GOARCH,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
s.Solaris = &specs.Solaris{}
|
2016-03-26 02:38:00 +03:00
|
|
|
return s
|
|
|
|
}
|