insomnia-mockbin icon indicating copy to clipboard operation
insomnia-mockbin copied to clipboard

Fixed docker container issue and added docker-compose file to simplify config

Open orasik opened this issue 8 years ago • 3 comments

  • Removed Dockerfile.
  • Added docker-compose and run.sh file.

issue

orasik avatar Oct 09 '17 17:10 orasik

I just downloaded this branch and built it, so far so good. I would suggest that @orasik build a new image on dockerhub so that people who go looking for it like I did find it.

joelmccracken avatar Dec 19 '17 18:12 joelmccracken

Are there still outstanding comments on this PR? Ran into this issue today and it would be great if this was merged

marcjay avatar Nov 17 '18 13:11 marcjay

For what it's worth I have a working image for Mockbin. I can push it to Docker Hub if anyone wants. Or you can build it yourself. The Dockerfile is:

FROM node:10.21.0-buster

WORKDIR /usr/src/mockbin

RUN git clone https://github.com/Kong/mockbin.git /usr/src/mockbin
RUN cd /usr/src/mockbin \
    && npm install \
    && npm install es6-promise
RUN npm config set mockbin:redis redis://172.18.0.103:6379

EXPOSE 8080
CMD [ "npm", "start" ]

You'll likely need to adjust the IP/name for Redis.

jimmybrancaccio avatar Jul 07 '20 16:07 jimmybrancaccio