Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hey, How Can I Point Trains To Look For It'S Train.Conf File In A Different Path Than ~/Trains.Conf?

Hey, how can I point trains to look for it's train.conf file in a different path than ~/trains.conf?

  
  
Posted 4 years ago
Votes Newest

Answers 9


Hi SmarmySeaurchin8

You can configure TRAINS_CONFIG_FILE env var with the conf file you want to run it with. Can this do the trick?

  
  
Posted 4 years ago

let me try

  
  
Posted 4 years ago

Is there a way to set this via a config file? like the docker compose yml?

  
  
Posted 4 years ago

You can configure env vars in your docker compose, but what is your scenario? Maybe there are some other solutions

  
  
Posted 4 years ago

My root folder is applicable to my user only. I wish to use a shared trains.conf file, so the trains_config_file can't point to ~/trains.conf sadly

  
  
Posted 4 years ago

how could I configure this in the docker compose?
Edit: the trains-agent points to a different trains.conf config as I wis., I want the dev environment to point to a different location trains.conf as well

  
  
Posted 4 years ago

For the trains-agent , you have an option to specify the trains.conf file you want it to run with. just start the trains-agent with trains-agent --config ~/trains_agent.conf (where ~/trains_agent.conf is your ~/trains.conf file for the agent run).

how could I configure this in the docker compose?

Do you mean to env vars?

  
  
Posted 4 years ago

In your development environment you don't have a docker-compose file... Can't you simply set it in your .bashrc file?

  
  
Posted 4 years ago

I'll do as Jake says. Thanks :)

  
  
Posted 4 years ago
979 Views
9 Answers
4 years ago
one year ago
Tags