elastest/elastest-service-manager

Environment variables defined in the docker-compose file do not apper inside the container....

Closed this issue · 2 comments

Hi,

I have the following issue. I have defined the environment variable "- ET_DOCKER_IMG_NOVNC=elastest/eus-novnc:latest\n" in the docker-compose of the EUS, but this variable does not appear when I do print env inside the Eus container.
So I think the reason for this is the environment variables sent in the "paramenters" request field override the environment variables defined in the docker-compose file.

I have attched the following files:

Thanks.

dizz commented

Hey @franciscoRdiaz - I’ve tested with the docker-compose file that was contained in your elastestservice.json file, and I cannot reproduce the issue. Once the container is provisioned, this is the set of shell environment variables:

docker exec -t -i 58392761b708 sh              
/ # env
JAVA_ALPINE_VERSION=8.151.12-r0
HOSTNAME=58392761b708
SHLVL=1
HOME=/root
JAVA_VERSION=8u151
ET_DOCKER_IMG_NOVNC=elastest/eus-novnc:latest
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
LANG=C.UTF-8
USE_TORM=true
PWD=/
JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk/jre
/ # 

Note ET_DOCKER_IMG_NOVNC=elastest/eus-novnc:latest present in the output.

Hi @dizz !

To complete your test and be able to reproduce the problem, you must request an instance of the EUS TSS passing as parameters any group of variables.
When we do this, the variables that have been passed as parameters overwrite the variables defined in the docker-compose.yml and the result is that the variable ET_DOCKER_IMG_NOVNC disappears.