I have 2 containers: a Redis container and a container for a Golang application. My Golang application is trying to perform Redis Mass Insertion (https://redis.io/topics/mass-insert) by executing a bash script with the command cat ${FILE}| redis-cli --pipe -h ${HOST}
.
However, redis-cli
is not found within the PATH system variable and it is not a built-in shell command in the Golang application service.
Hence, I get an exit status 127
, which means the given command in not found. I would like to know how I would be able to execute the bash script without redis-cli
command in the Golang application service.