mirror of
https://github.com/bitnami/containers.git
synced 2026-03-12 14:57:54 +08:00
2.0.0-ol-7-r0 release
This commit is contained in:
26
bitnami/tensorflow-serving/2/ol-7/Dockerfile
Normal file
26
bitnami/tensorflow-serving/2/ol-7/Dockerfile
Normal 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" ]
|
||||
14
bitnami/tensorflow-serving/2/ol-7/docker-compose.yml
Normal file
14
bitnami/tensorflow-serving/2/ol-7/docker-compose.yml
Normal 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
|
||||
13
bitnami/tensorflow-serving/2/ol-7/rootfs/app-entrypoint.sh
Executable file
13
bitnami/tensorflow-serving/2/ol-7/rootfs/app-entrypoint.sh
Executable 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 -- "$@"
|
||||
16
bitnami/tensorflow-serving/2/ol-7/rootfs/run.sh
Executable file
16
bitnami/tensorflow-serving/2/ol-7/rootfs/run.sh
Executable 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
|
||||
@@ -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}}"
|
||||
}
|
||||
Reference in New Issue
Block a user