@@ -95,83 +95,83 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
95
95
}
96
96
97
97
query := struct {
98
- AddHosts string `schema:"extrahosts"`
99
- AdditionalCapabilities string `schema:"addcaps"`
100
- AdditionalBuildContexts string `schema:"additionalbuildcontexts"`
101
- AllPlatforms bool `schema:"allplatforms"`
102
- Annotations string `schema:"annotations"`
103
- AppArmor string `schema:"apparmor"`
104
- BuildArgs string `schema:"buildargs"`
105
- CacheFrom string `schema:"cachefrom"`
106
- CacheTo string `schema:"cacheto"`
107
- CacheTTL string `schema:"cachettl"`
108
- CgroupParent string `schema:"cgroupparent"`
109
- CompatVolumes bool `schema:"compatvolumes"`
110
- Compression uint64 `schema:"compression"`
111
- ConfigureNetwork string `schema:"networkmode"`
112
- CPPFlags string `schema:"cppflags"`
113
- CpuPeriod uint64 `schema:"cpuperiod"`
114
- CpuQuota int64 `schema:"cpuquota"`
115
- CpuSetCpus string `schema:"cpusetcpus"`
116
- CpuSetMems string `schema:"cpusetmems"`
117
- CpuShares uint64 `schema:"cpushares"`
118
- DNSOptions string `schema:"dnsoptions"`
119
- DNSSearch string `schema:"dnssearch"`
120
- DNSServers string `schema:"dnsservers"`
121
- Devices string `schema:"devices"`
122
- Dockerfile string `schema:"dockerfile"`
123
- DropCapabilities string `schema:"dropcaps"`
124
- Envs []string `schema:"setenv"`
125
- Excludes string `schema:"excludes"`
126
- ForceRm bool `schema:"forcerm"`
127
- From string `schema:"from"`
128
- GroupAdd []string `schema:"groupadd"`
129
- HTTPProxy bool `schema:"httpproxy"`
130
- IDMappingOptions string `schema:"idmappingoptions"`
131
- IdentityLabel bool `schema:"identitylabel"`
132
- Ignore bool `schema:"ignore"`
133
- InheritLabels bool `schema:"inheritlabels"`
134
- Isolation string `schema:"isolation"`
135
- Jobs int `schema:"jobs"`
136
- LabelOpts string `schema:"labelopts"`
137
- Labels string `schema:"labels"`
138
- LayerLabels []string `schema:"layerLabel"`
139
- Layers bool `schema:"layers"`
140
- LogRusage bool `schema:"rusage"`
141
- Manifest string `schema:"manifest"`
142
- MemSwap int64 `schema:"memswap"`
143
- Memory int64 `schema:"memory"`
144
- NamespaceOptions string `schema:"nsoptions"`
145
- NoCache bool `schema:"nocache"`
146
- NoHosts bool `schema:"nohosts"`
147
- OmitHistory bool `schema:"omithistory"`
148
- OSFeatures []string `schema:"osfeature"`
149
- OSVersion string `schema:"osversion"`
150
- OutputFormat string `schema:"outputformat"`
151
- Platform []string `schema:"platform"`
152
- Pull bool `schema:"pull"`
153
- PullPolicy string `schema:"pullpolicy"`
154
- Quiet bool `schema:"q"`
155
- Registry string `schema:"registry"`
156
- Rm bool `schema:"rm"`
157
- RusageLogFile string `schema:"rusagelogfile"`
158
- Remote string `schema:"remote"`
159
- Retry int `schema:"retry"`
160
- RetryDelay string `schema:"retry-delay"`
161
- Seccomp string `schema:"seccomp"`
162
- Secrets string `schema:"secrets"`
163
- SecurityOpt string `schema:"securityopt"`
164
- ShmSize int `schema:"shmsize"`
165
- SkipUnusedStages bool `schema:"skipunusedstages"`
166
- Squash bool `schema:"squash"`
167
- TLSVerify bool `schema:"tlsVerify"`
168
- Tags []string `schema:"t"`
169
- Target string `schema:"target"`
170
- Timestamp int64 `schema:"timestamp"`
171
- Ulimits string `schema:"ulimits"`
172
- UnsetEnvs []string `schema:"unsetenv"`
173
- UnsetLabels []string `schema:"unsetlabel"`
174
- Volumes []string `schema:"volume"`
98
+ AddHosts string `schema:"extrahosts"`
99
+ AdditionalCapabilities string `schema:"addcaps"`
100
+ AdditionalBuildContexts string `schema:"additionalbuildcontexts"`
101
+ AllPlatforms bool `schema:"allplatforms"`
102
+ Annotations string `schema:"annotations"`
103
+ AppArmor string `schema:"apparmor"`
104
+ BuildArgs string `schema:"buildargs"`
105
+ CacheFrom string `schema:"cachefrom"`
106
+ CacheTo string `schema:"cacheto"`
107
+ CacheTTL string `schema:"cachettl"`
108
+ CgroupParent string `schema:"cgroupparent"`
109
+ CompatVolumes bool `schema:"compatvolumes"`
110
+ Compression uint64 `schema:"compression"`
111
+ ConfigureNetwork string `schema:"networkmode"`
112
+ CPPFlags string `schema:"cppflags"`
113
+ CpuPeriod uint64 `schema:"cpuperiod"`
114
+ CpuQuota int64 `schema:"cpuquota"`
115
+ CpuSetCpus string `schema:"cpusetcpus"`
116
+ CpuSetMems string `schema:"cpusetmems"`
117
+ CpuShares uint64 `schema:"cpushares"`
118
+ DNSOptions string `schema:"dnsoptions"`
119
+ DNSSearch string `schema:"dnssearch"`
120
+ DNSServers string `schema:"dnsservers"`
121
+ Devices string `schema:"devices"`
122
+ Dockerfile string `schema:"dockerfile"`
123
+ DropCapabilities string `schema:"dropcaps"`
124
+ Envs []string `schema:"setenv"`
125
+ Excludes string `schema:"excludes"`
126
+ ForceRm bool `schema:"forcerm"`
127
+ From string `schema:"from"`
128
+ GroupAdd []string `schema:"groupadd"`
129
+ HTTPProxy bool `schema:"httpproxy"`
130
+ IDMappingOptions string `schema:"idmappingoptions"`
131
+ IdentityLabel bool `schema:"identitylabel"`
132
+ Ignore bool `schema:"ignore"`
133
+ InheritLabels types. OptionalBool `schema:"inheritlabels"`
134
+ Isolation string `schema:"isolation"`
135
+ Jobs int `schema:"jobs"`
136
+ LabelOpts string `schema:"labelopts"`
137
+ Labels string `schema:"labels"`
138
+ LayerLabels []string `schema:"layerLabel"`
139
+ Layers bool `schema:"layers"`
140
+ LogRusage bool `schema:"rusage"`
141
+ Manifest string `schema:"manifest"`
142
+ MemSwap int64 `schema:"memswap"`
143
+ Memory int64 `schema:"memory"`
144
+ NamespaceOptions string `schema:"nsoptions"`
145
+ NoCache bool `schema:"nocache"`
146
+ NoHosts bool `schema:"nohosts"`
147
+ OmitHistory bool `schema:"omithistory"`
148
+ OSFeatures []string `schema:"osfeature"`
149
+ OSVersion string `schema:"osversion"`
150
+ OutputFormat string `schema:"outputformat"`
151
+ Platform []string `schema:"platform"`
152
+ Pull bool `schema:"pull"`
153
+ PullPolicy string `schema:"pullpolicy"`
154
+ Quiet bool `schema:"q"`
155
+ Registry string `schema:"registry"`
156
+ Rm bool `schema:"rm"`
157
+ RusageLogFile string `schema:"rusagelogfile"`
158
+ Remote string `schema:"remote"`
159
+ Retry int `schema:"retry"`
160
+ RetryDelay string `schema:"retry-delay"`
161
+ Seccomp string `schema:"seccomp"`
162
+ Secrets string `schema:"secrets"`
163
+ SecurityOpt string `schema:"securityopt"`
164
+ ShmSize int `schema:"shmsize"`
165
+ SkipUnusedStages bool `schema:"skipunusedstages"`
166
+ Squash bool `schema:"squash"`
167
+ TLSVerify bool `schema:"tlsVerify"`
168
+ Tags []string `schema:"t"`
169
+ Target string `schema:"target"`
170
+ Timestamp int64 `schema:"timestamp"`
171
+ Ulimits string `schema:"ulimits"`
172
+ UnsetEnvs []string `schema:"unsetenv"`
173
+ UnsetLabels []string `schema:"unsetlabel"`
174
+ Volumes []string `schema:"volume"`
175
175
}{
176
176
Dockerfile : "Dockerfile" ,
177
177
IdentityLabel : true ,
@@ -745,7 +745,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
745
745
IDMappingOptions : & idMappingOptions ,
746
746
IgnoreUnrecognizedInstructions : query .Ignore ,
747
747
IgnoreFile : ignoreFile ,
748
- InheritLabels : types . NewOptionalBool ( query .InheritLabels ) ,
748
+ InheritLabels : query .InheritLabels ,
749
749
Isolation : isolation ,
750
750
Jobs : & jobs ,
751
751
Labels : labels ,
0 commit comments