You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Stephan Erb (JIRA)" <ji...@apache.org> on 2017/01/25 22:34:27 UTC
[jira] [Commented] (AURORA-1880) How to set the environment
variable for Mesos Containerizer?
[ https://issues.apache.org/jira/browse/AURORA-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838731#comment-15838731 ]
Stephan Erb commented on AURORA-1880:
-------------------------------------
There are multiple ways to achieve this. The easiest is probably to just place the environment variable before the command you are executing, i.e.
{code}
my_process = Process(
name = 'my_process'
cmdline = "ENV1=env ./my_cool_script.sh")
{code}
An other alternative would be to use a thermos_profile https://github.com/apache/aurora/blob/master/docs/reference/configuration-tutorial.md#getting-environment-variables-into-the-sandbox.
I am closing this ticket as it is not a real bug. If you have any further questions, please contact us via mail or in slack/irc. http://aurora.apache.org/community/
> How to set the environment variable for Mesos Containerizer?
> ------------------------------------------------------------
>
> Key: AURORA-1880
> URL: https://issues.apache.org/jira/browse/AURORA-1880
> Project: Aurora
> Issue Type: Bug
> Affects Versions: 0.16.0, 0.15.0
> Reporter: jackyoh
>
> I'm running a Docker on an Aurora framework.
> The question is: how to set the environment variable for Mesos Containerizer?
> For example:
> docker run -e ENV1=env1 ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)