Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NX-OS and OpenShift compatible Dockerfile #5

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bin/pipeline
Binary file not shown.
23 changes: 23 additions & 0 deletions docker/Kuberfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to build?
#
# docker build -f ./Kuberfile -t pipeline:<version> .
#
# Assumes the fully configured configurations will be supplied
# in Kubernetes as a ConfigMap to /data/config
# pipeline is placed in / (root) but workdir is set to /data volume
# in order to allow the create/delete of other files like models.txt
# which is otherwise not allowed by platforms such as OpenShift
# where there are security restrictions by default on permissions.
# ----------------------------------------------------

FROM bitnami/minideb:latest

MAINTAINER Remington Campbell <[email protected]>

VOLUME ["/data"]
VOLUME ["/data/config"]

ADD pipeline /pipeline
WORKDIR /data
ENTRYPOINT ["/pipeline"]
CMD ["-log=/data/pipeline.log", "-config=/data/config/pipeline.conf", "-pem=/data/config/pipeline_rsa"]
6 changes: 3 additions & 3 deletions xport_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,13 @@ func (s *grpcLocalServer) MdtDialout(
reply, err := stream.Recv()
if err != nil {
if err == io.EOF {
logctx.WithError(err).Error(GRPCLOGPRE +
"session closed")
//logctx.WithError(err).Error(GRPCLOGPRE +
// "session closed")
} else {
logctx.WithError(err).Error(GRPCLOGPRE +
"session error")
}
return err
return nil
}

if len(reply.Data) == 0 {
Expand Down