Compare commits

2 Commits

Author SHA1 Message Date
Guilhem Bonnefille
cfab6e0dff Document Docker feature 2020-07-29 12:00:11 +02:00
Guilhem Bonnefille
bac1f7e27e Add a Dockerfile 2020-07-29 11:33:39 +02:00
2 changed files with 31 additions and 3 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:latest
RUN mkdir -p /opt/openkarotz-emulator
COPY . /opt/openkarotz-emulator
WORKDIR /opt/openkarotz-emulator
EXPOSE 80
CMD node index.js

View File

@@ -39,7 +39,11 @@ The following Apps are available:
- moods
## Usage ##
## Build & Run ##
Can be installed natively or via Docker.
### Native ###
1. Install [Node.js](http://nodejs.org/).
@@ -47,6 +51,20 @@ The following Apps are available:
node index.js
3. Open web browser on [http://localhost](http://localhost) to view available APIs.
### Docker ###
4. Call any of the APIs from your application, eg. [http://localhost/cgi-bin/status](http://localhost/cgi-bin/status)
1. Install Docker
2. Build:
docker build -t openkarotz-emulator .
3. Run:
docker run -p 80:80 -it openkarotz-emulator
## Usage ##
1. Open web browser on [http://localhost](http://localhost) to view available APIs.
2. Call any of the APIs from your application, eg. [http://localhost/cgi-bin/status](http://localhost/cgi-bin/status)