Skip to content

Commit bc086b1

Browse files
author
luismclglass
committed
Add "OnBuild" field
1 parent 50bc1eb commit bc086b1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/main/java/com/kpelykh/docker/client/model/ContainerConfig.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public class ContainerConfig {
3737
@JsonProperty("Domainname") private String domainName = "";
3838
// FIXME Is this the right type? -BJE
3939
@JsonProperty("ExposedPorts") private Map<String, ?> exposedPorts;
40+
41+
@JsonProperty("OnBuild") private int[] onBuild;
4042

4143
public Map<String, ?> getExposedPorts() {
4244
return exposedPorts;
@@ -241,6 +243,19 @@ public ContainerConfig setEntrypoint(String[] entrypoint) {
241243
this.entrypoint = entrypoint;
242244
return this;
243245
}
246+
247+
public void setOnBuild(int[] onBuild) {
248+
this.onBuild = onBuild;
249+
}
250+
251+
public int[] getOnBuild() {
252+
return onBuild;
253+
}
254+
255+
public void setDomainName(String domainName) {
256+
this.domainName = domainName;
257+
}
258+
244259

245260
@Override
246261
public String toString() {
@@ -268,6 +283,7 @@ public String toString() {
268283
", privileged=" + privileged +
269284
", workingDir='" + workingDir + '\'' +
270285
", domainName='" + domainName + '\'' +
286+
", onBuild='" + onBuild + '\'' +
271287
'}';
272288
}
273289
}

0 commit comments

Comments
 (0)