Skip to content
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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:10-alpine

RUN npm -g config set user root

RUN npm install -g drakov

WORKDIR /mock

EXPOSE 3000

ENTRYPOINT ["drakov", "--public"]

CMD ["--help"]
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Drakov API Blueprint Mock Server

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Aconex/drakov?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![npm version](https://badge.fury.io/js/drakov.svg)](http://badge.fury.io/js/drakov) [![Build Status](https://travis-ci.org/Aconex/drakov.svg)](https://travis-ci.org/Aconex/drakov)

![Drakov](drakov.png)
Expand Down Expand Up @@ -55,6 +55,11 @@ When flag `--debugMode` is set on Drakov's start up all mismatching requests wil
- Server port is optional and defaults to **3000**
- CORS headers are sent by default, you need to use the --disableCORS switch/property

## Running with docker

`docker run -v $PWD:/mock -p 3000 aconex/drakov -f <glob expression to your md files>`

With the `-v $PWD:/mock` you bind the current working directory to the /mock directory inside the container. Then you specify the <glob expression to your md files> just like you would do using drakov if it were installed globally.

## Running with configuration file

Expand Down