Skip to content

Working Dockerfile for mountebank-grpc #18

Description

@bobruub

Hi,

I was hoping someone could help me and provide me a working docker file for mountebank-grpc.

I've been poking at it for a couple of days now and always end up with error creating imposter: [{"code":"bad data","message":"the grpc protocol is not yet supported"}]

Current attempt:

FROM node:8.2

EXPOSE 2525
#CMD ["mb", "--configfile", "/tmp/perf_sven_grpc_poc/grpc_impostor.ejs", "--protofile","/tmp/perf_sven_grpc_poc/protocols.json","--allowInjection",  "--logfile", "/var/log/mb_gprc.log", "--port", "6105" ]

ENV MOUNTEBANK_VERSION=1.15.0

RUN cd /usr/lib/node_modules; npm install -g mountebank@${MOUNTEBANK_VERSION} --production \
 && npm cache clean --force 2>/dev/null \
 && rm -rf /tmp/npm* \
 && npm install xml2js \
 && npm install dateformat \
 && npm install node-uuid \
 && npm install url \
 && npm install sax \
 && npm install xmlbuilder

RUN mkdir /tmp/perf_sven_grpc_poc
RUN cd /tmp/perf_sven_grpc_poc
RUN git clone https://github.com/cbrz/mountebank-grpc
RUN npm install

COPY ./protocols.json /tmp/perf_sven_grpc_poc/protocols.json
COPY ./01_grpc_unary_unary.ejs /tmp/perf_sven_grpc_poc/01_grpc_unary_unary.ejs
COPY ./grpc_impostor.ejs /tmp/perf_sven_grpc_poc/grpc_impostor.ejs
COPY ./start_mb_grpc.sh /tmp/perf_sven_grpc_poc/start_mb_grpc.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions