2014-10-21 22:02:20 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/docker/docker-registry/storagedriver/filesystem"
|
|
|
|
"github.com/docker/docker-registry/storagedriver/ipc"
|
|
|
|
)
|
|
|
|
|
2014-10-29 01:15:40 +00:00
|
|
|
// An out-of-process filesystem driver, intended to be run by ipc.NewDriverClient
|
2014-10-21 22:02:20 +00:00
|
|
|
func main() {
|
|
|
|
parametersBytes := []byte(os.Args[1])
|
2014-10-29 01:15:40 +00:00
|
|
|
var parameters map[string]string
|
2014-10-21 22:02:20 +00:00
|
|
|
err := json.Unmarshal(parametersBytes, ¶meters)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2014-10-29 01:15:40 +00:00
|
|
|
|
|
|
|
ipc.StorageDriverServer(filesystem.FromParameters(parameters))
|
2014-10-21 22:02:20 +00:00
|
|
|
}
|