I am trying to fetch variables from a .conf/ini file as environment variables into a Shell script. This file is mounted during container run.
Again once fetched into the shell script I want the variables to be exported.
I tried the below steps.
#!bin/bash
DB_NAME=${env.DB_URL}
export URL=${DB_NAME}
I have passed this DB_URL value in a file and not sure which location do i mount the file to be fetched in the script as env variable.