Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0248F200BAA for ; Thu, 27 Oct 2016 09:03:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 00ED8160AF6; Thu, 27 Oct 2016 07:03:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4B346160AE4 for ; Thu, 27 Oct 2016 09:03:00 +0200 (CEST) Received: (qmail 61834 invoked by uid 500); 27 Oct 2016 07:02:58 -0000 Mailing-List: contact issues-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list issues@aurora.apache.org Received: (qmail 61725 invoked by uid 99); 27 Oct 2016 07:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2016 07:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 61EE42C1F54 for ; Thu, 27 Oct 2016 07:02:58 +0000 (UTC) Date: Thu, 27 Oct 2016 07:02:58 +0000 (UTC) From: "Stephan Erb (JIRA)" To: issues@aurora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AURORA-1805) Enhance `Process` object to allow easier access to environment variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Oct 2016 07:03:01 -0000 [ https://issues.apache.org/jira/browse/AURORA-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15610949#comment-15610949 ] Stephan Erb commented on AURORA-1805: ------------------------------------- FWIW, there is also the {{.thermos_profile}} file that can be used to inject env vars. > Enhance `Process` object to allow easier access to environment variables > ------------------------------------------------------------------------ > > Key: AURORA-1805 > URL: https://issues.apache.org/jira/browse/AURORA-1805 > Project: Aurora > Issue Type: Task > Components: Thermos > Reporter: Zameer Manji > > The thermos DSL: > {noformat} > class Process(Struct): > cmdline = Required(String) > name = Required(String) > # This is currently unused but reserved for future use by Thermos. > resources = Resources > # optionals > max_failures = Default(Integer, 1) # maximum number of failed process runs > # before process is failed. > daemon = Default(Boolean, False) > ephemeral = Default(Boolean, False) > min_duration = Default(Integer, 5) # integer seconds > final = Default(Boolean, False) # if this process should be a finalizing process > # that should always be run after regular processes > logger = Default(Logger, Empty) > {noformat} > If we can add a new field: > {noformat} > environment = Default(Map(String, String), {}) > {noformat} > It will make it much easier to add environment variables. > Right now the solution is to prefix environment variables to cmdline which can get janky and frustrating with the string interpolation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)