2.0.0-ol-7-r0 release

This commit is contained in:
Bitnami Bot
2019-11-12 18:42:35 +00:00
parent 977c58fbc8
commit dea4b2f243
6 changed files with 79 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
FROM bitnami/oraclelinux-extras:7-r527
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
HOME="/"
# Install required system packages and dependencies
RUN install_packages glibc libgcc libstdc++
RUN bitnami-pkg unpack tensorflow-serving-2.0.0-0 --checksum 8e5efddeb6d3b4e15d5094c0a9014955c3e7ec17f21f861f6e2eace1b16fc922
COPY rootfs /
ENV BITNAMI_APP_NAME="tensorflow-serving" \
BITNAMI_IMAGE_VERSION="2.0.0-ol-7-r0" \
NAMI_PREFIX="/.nami" \
PATH="/opt/bitnami/tensorflow-serving/bin:/opt/bitnami/tensorflow-serving/bazel-bin/tensorflow_serving/model_servers:$PATH" \
TENSORFLOW_SERVING_ENABLE_MONITORING="no" \
TENSORFLOW_SERVING_MODEL_NAME="resnet" \
TENSORFLOW_SERVING_MONITORING_PATH="/monitoring/prometheus/metrics" \
TENSORFLOW_SERVING_PORT_NUMBER="8500" \
TENSORFLOW_SERVING_REST_API_PORT_NUMBER="8501"
EXPOSE 8500
USER 1001
ENTRYPOINT [ "/app-entrypoint.sh" ]
CMD [ "/run.sh" ]

View File

@@ -0,0 +1,14 @@
version: '2'
services:
tensorflow-serving:
image: 'bitnami/tensorflow-serving:2-ol-7'
ports:
- '8500:8500'
- '8501:8501'
volumes:
- 'tensorflow_serving_data:/bitnami'
- '/tmp/model-data:/bitnami/model-data'
volumes:
tensorflow_serving_data:
driver: local

View File

@@ -0,0 +1,13 @@
#!/bin/bash -e
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
print_welcome_page
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run.sh" ]]; then
nami_initialize tensorflow-serving
info "Starting tensorflow-serving... "
fi
exec tini -- "$@"

View File

@@ -0,0 +1,16 @@
#!/bin/bash
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
DAEMON="tensorflow-serving.sh"
USER=tensorflow
EXEC=$(which $DAEMON)
START_COMMAND="${EXEC} start-foreground"
# If container is started as `root` user
if [ $EUID -eq 0 ]; then
exec gosu "${USER}" bash -c "${START_COMMAND}"
else
exec bash -c "${START_COMMAND}"
fi

View File

@@ -0,0 +1,7 @@
{
"enableMonitoring": "{{$global.env.TENSORFLOW_SERVING_ENABLE_MONITORING}}",
"modelName": "{{$global.env.TENSORFLOW_SERVING_MODEL_NAME}}",
"monitoringPath": "{{$global.env.TENSORFLOW_SERVING_MONITORING_PATH}}",
"port": "{{$global.env.TENSORFLOW_SERVING_PORT_NUMBER}}",
"restApiPort": "{{$global.env.TENSORFLOW_SERVING_REST_API_PORT_NUMBER}}"
}