File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 26
26
proxyInterface : " eth0"
27
27
registrySecret : " quay"
28
28
registryURL : " https://quay.io"
29
+ dataDirectory : " /opt/rapyuta/volumes/"
Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ definitions:
98
98
type : string
99
99
registryURL :
100
100
type : string
101
+ dataDirectory :
102
+ type : string
101
103
required :
102
104
- proxyDevice
103
105
- proxyInterface
Original file line number Diff line number Diff line change 52
52
default = (),
53
53
help = "Name of the secret for upstream docker registry" ,
54
54
)
55
+ @click .option (
56
+ "--data-directory" ,
57
+ type = click .STRING ,
58
+ default = (),
59
+ help = "Registry blob storage path (default: /opt/rapyuta/volumes/docker-cache/)" ,
60
+ )
55
61
@name_to_guid
56
62
@with_spinner (text = "Updating DockerCache state..." )
57
63
def dockercache (
@@ -62,6 +68,7 @@ def dockercache(
62
68
proxy_interface : str ,
63
69
registry_url : str ,
64
70
registry_secret : str ,
71
+ data_directory : str ,
65
72
spinner = None ,
66
73
) -> None :
67
74
"""
@@ -74,7 +81,8 @@ def dockercache(
74
81
--proxy-device edge01 \\
75
82
--proxy-interface eth0 \\
76
83
--registry-url https://quay.io \\
77
- --registry-secret quay
84
+ --registry-secret quay \\
85
+ --data-directory "/tmp/rapyuta/volumes"
78
86
"""
79
87
client = new_v2_client (with_project = False )
80
88
@@ -91,6 +99,7 @@ def dockercache(
91
99
"proxyInterface" : proxy_interface ,
92
100
"registryURL" : registry_url ,
93
101
"registrySecret" : registry_secret ,
102
+ "dataDirectory" : data_directory ,
94
103
}
95
104
96
105
is_enabled = project ["spec" ]["features" ]["dockerCache" ].get ("enabled" , False )
You can’t perform that action at this time.
0 commit comments