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
Hello Everyone! I'D Like To Mount Some Data On Trains Agent Into Docker Container Directory That Contains Cloned Source Code From Repo, Like This:

Hello everyone!

I'd like to mount some data on trains agent into docker container directory that contains cloned source code from repo, like this:

BASE DOCKER IMAGE: my_image:my_tag -v /trains/agent/data/path:${SOURCE_DIR}/data/path

Is there an equivalent of ${SOURCE_DIR} variable?

  
  
Posted 4 years ago
Votes Newest

Answers 3


Thanks AgitatedDove14 , already figured it out, but trains removed all data from mounted directory during repo checkout, so I ended up switching to absolute paths in my trainloop

  
  
Posted 4 years ago

BTW: generally speaking the default source dir inside a docker will be:
/root/.trains/venvs-builds/<python_version>/task_repository/<repository_name>/
for example:
/root/.trains/venvs-builds/3.6/task_repository/trains.git/

  
  
Posted 4 years ago

Hi ProudMosquito87
so you mean to mount your data folder onto the the docker so that the code could access it, correct?
If that is the case, is there a specific version not to use absolute path? (e.g. /mnt/data/mine )?

  
  
Posted 4 years ago
1K Views
3 Answers
4 years ago
one year ago
Tags