[
https://issues.apache.org/jira/browse/FLINK-8490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337839#comment-16337839
]
ASF GitHub Bot commented on FLINK-8490:
---------------------------------------
Github user lishim commented on a diff in the pull request:
https://github.com/apache/flink/pull/5346#discussion_r163596583
--- Diff:
flink-mesos/src/test/java/org/apache/flink/mesos/runtime/clusterframework/MesosTaskManagerParametersTest.java
---
@@ -84,6 +84,35 @@ public void testContainerVolumes() throws Exception {
assertEquals(Protos.Volume.Mode.RO,
params.containerVolumes().get(0).getMode());
}
+ @Test
+ public void testContainerDockerParameter() throws Exception {
+ Configuration config = new Configuration();
+
config.setString(MesosTaskManagerParameters.MESOS_RM_CONTAINER_DOCKER_PARAMETERS,
"testKey=testValue");
+
+ MesosTaskManagerParameters params =
MesosTaskManagerParameters.create(config);
+ assertEquals(params.dockerParameters().get(0).getKey(),
"testKey");
--- End diff --
Added a size check.
> Allow custom docker parameters for docker tasks on Mesos
> --------------------------------------------------------
>
> Key: FLINK-8490
> URL: https://issues.apache.org/jira/browse/FLINK-8490
> Project: Flink
> Issue Type: Improvement
> Components: Mesos
> Reporter: Jörg Schad
> Priority: Major
>
> It would be great to pass custom parameters to Mesos when using the Docker
> Containerizer.
> This could be similar to this spark example:
> `spark.mesos.executor.docker.parameters privileged=true`
>
> Originally brought up here:
> https://stackoverflow.com/questions/48393153/passing-custom-parameters-to-docker-when-running-flink-on-mesos-marathon?noredirect=1#comment83777480_48393153
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)