(self)
Add environment overrides from the conf to our container config.
Add environment overrides from the conf to our container config.
Add environment overrides from the conf to our container config .
def _setup_env(self):
        """ Add environment overrides from the conf to our container config. """
        env_override = self.options.get('environment')
        if env_override:
            for key, value in env_override.items():
                self._container.config['environment.{}'.format(key)] = str(value)
            self._container.save(wait=True)
def _setup_env ( self ) : env_override = self . options . get ( 'environment' ) if env_override : for key , value in env_override . items ( ) : self . _container . config [ 'environment.{}' . format ( key ) ] = str ( value ) self . _container . save ( wait = True )