Reputation: 889
I am trying to create a docker file to run a machine learning algorithm with parameters given in config.json file. Simplified version of my docker command looks like this
docker run --rm -it \
-e "CONFIG=work/algorithms/config.json" \
-e "SRC_TYPE=csv"
--entrypoint /bin/bash \
$(DOCKER_REPO)/$(DOCKER_IMAGE):$(DOCKER_VERSION)
Andy bash script running python command looks like this.
#!/bin/sh
python work/algos/neural_network.py \
--ml_conf "$CONFIG" \
--src_type "$SRC_TYPE" \
--log resources/logs/nn_iris.log
When I use the CONFIG variable in the script like this, It does not work. But the SRC_TYPE variable works. Could you please let me know the right way to use environment variables which contain path.
Upvotes: 1
Views: 543