thanks Kai, if the include_vars will not export , i have tried the environment module too… the variable file is dynamic and every time it changes the value.
cat variable.yml ( its a dynamic file and the value keeps changing )
ptr_image: my.example.com/jobname/testname ======>( this value will change frequently )
ver_number: v99 ===> (this values will change frequently in the file say to v100 v101 …v150 )
so how do we export the change/dynamic values so that the command docker stack -c somefile.yml runs with the exported variables…when using environment module…please share your insight …thanks
Thanks Kai for clarifying it…so putting variable under the environment module after shell will export the variable. …can we see the variable with echo $ver_number on the linux host if it has been exported using environment
Kai/Brian, could you please help on it…as above the files are variable1.yml, variable2.yml,variable3.yml…having the values as ptr_image: my.example.com/jobname/testname
ver_number: v99 and diferent values in different files but the variable name ( ptr_image and ver_number name remains the same in all files but values change) …is there a way that we can export the environment variable from file variable1.yml and run the docker stack -c some.yml and then take the variable2 file and export the environment variable again from this file and then again run docket stack -c some.yml and so on…( one variable file values to be export and subsequent ones)…