thanks for the reply @DavidTurner !
As suggested by @dadoonet , I am using the docker-entrypoint.sh script.
As below where, I running 2 script from a 3rd script passed in entrypoint. like below:-
#!/bin/bash
#Run the script to set the kernel parameters with root priviledge
./set_kernel_parameters.sh
#Run the docker-entrypoint.sh with elasticsearch user
su -c "./docker-entrypoint.sh" elasticsearch
But here I am getting the following error:-
vm.max_map_count = 262144
./entrypoint.sh: line 44: elasticsearch-keystore: command not found
From above output it says, the kernel parameters are set successfully from ./set_kernel_parameters.sh but docker-entrypoint.sh is having some issue.
I think we are very close to get this solved.
Any help is appreciated!
thanks