mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Degler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-3787) As a developer, I'd like to be able to expand environment variables through the Docker executor.
Date Wed, 04 Nov 2015 03:34:27 GMT

    [ https://issues.apache.org/jira/browse/MESOS-3787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988821#comment-14988821
] 

Stephen Degler commented on MESOS-3787:
---------------------------------------

My horrible hack :-)

        "volumes": [
            {

                "containerPath": "/${KRB5CCNAME}",
                "hostPath": "/${KRB5CCNAME}",
                "mode": "RO"
            }
        ]

So the nice thing about our patch was that substitutions were done earlier.  its wrong because
we probably leak memory as we didn't want to change the mutability of taskInfo.  Your patch
is much smaller, but then the subsequent logic examines the arguments prior to expansion and
goofs up the paths at least.




> As a developer, I'd like to be able to expand environment variables through the Docker
executor.
> ------------------------------------------------------------------------------------------------
>
>                 Key: MESOS-3787
>                 URL: https://issues.apache.org/jira/browse/MESOS-3787
>             Project: Mesos
>          Issue Type: Wish
>            Reporter: John Garcia
>              Labels: mesosphere
>         Attachments: mesos.patch, test-example.json
>
>
> We'd like to have expanded variables usable in [the json files used to create a Marathon
app, hence] the Task's CommandInfo, so that the executor is able to detect the correct values
at runtime.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message