Having seen this github issue and this stackoverflow post I had hoped this would simply work.
It seems as though passing in the environment variable MODEL_CONFIG_FILE
has no affect. I am running this through docker-compose
but I get the same issue using docker-run
.
The error:
I tensorflow_serving/model_servers/server.cc:82] Building single TensorFlow model file config: model_name: model model_base_path: /models/model
I tensorflow_serving/model_servers/server_core.cc:461] Adding/updating models.
I tensorflow_serving/model_servers/server_core.cc:558] (Re-)adding model: model
E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:369] FileSystemStoragePathSource encountered a file-system access error: Could not find base path /models/model for servable model
The Dockerfile
FROM tensorflow/serving:nightly
COPY ./models/first/ /models/first
COPY ./models/second/ /models/second
COPY ./config.conf /config/config.conf
ENV MODEL_CONFIG_FILE=/config/config.conf
The compose file
version: '3'
services:
serving:
build: .
image: testing-models
container_name: tf
The config file
model_config_list: {
config: {
name: "first",
base_path: "/models/first",
model_platform: "tensorflow",
model_version_policy: {
all: {}
}
},
config: {
name: "second",
base_path: "/models/second",
model_platform: "tensorflow",
model_version_policy: {
all: {}
}
}
}
:1.11.0-rc0
as the image, as stated in the question you linked that is the revision with these changes. I ran adocker image prune -a
to ensure I always had the latest image. The command I used wasdocker-compose build
followed bydocker-compose up
. The problem is stated above. The only thing I can think is that the environment variable is somehow not being honoured by the image. – Pursuance