@@ -61,6 +61,7 @@ public abstract class AbstractContainerBackend implements IContainerBackend {
61
61
protected static final String PROPERTY_URL = "url" ;
62
62
protected static final String PROPERTY_CERT_PATH = "cert-path" ;
63
63
protected static final String PROPERTY_CONTAINER_PROTOCOL = "container-protocol" ;
64
+ protected static final String PROPERTY_PRIVILEGED = "privileged" ;
64
65
65
66
protected static final String DEFAULT_TARGET_PROTOCOL = "http" ;
66
67
@@ -71,6 +72,7 @@ public abstract class AbstractContainerBackend implements IContainerBackend {
71
72
protected final Logger log = LogManager .getLogger (getClass ());
72
73
73
74
private boolean useInternalNetwork ;
75
+ private boolean privileged ;
74
76
75
77
@ Inject
76
78
protected IProxyTargetMappingStrategy mappingStrategy ;
@@ -96,6 +98,7 @@ public abstract class AbstractContainerBackend implements IContainerBackend {
96
98
public void initialize () throws ContainerProxyException {
97
99
// If this application runs as a container itself, things like port publishing can be omitted.
98
100
useInternalNetwork = Boolean .valueOf (getProperty (PROPERTY_INTERNAL_NETWORKING , "false" ));
101
+ privileged = Boolean .valueOf (getProperty (PROPERTY_PRIVILEGED , "false" ));
99
102
}
100
103
101
104
@ Override
@@ -212,4 +215,8 @@ protected List<String> buildEnv(ContainerSpec containerSpec, Proxy proxy) throws
212
215
protected boolean isUseInternalNetwork () {
213
216
return useInternalNetwork ;
214
217
}
218
+
219
+ protected boolean isPrivileged () {
220
+ return privileged ;
221
+ }
215
222
}
0 commit comments