Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.04 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.04 KB

MoscowML fallback Docker image

This folder contains the source code and configuration to build the Docker image for the MoscowML fallback server.

Prerequisites

You should have Docker installed and the Docker daemon running. Download and build the dependencies via:

./download.sh

Build

To build the fallback locally:

docker build -t yourimage .

Run

Pipe into this command:

docker run --rm -i yourimage

to get a cleaned up result.

Or use mine:

docker pull derjesko/mosmlfallback
docker run --rm -i derjesko/mosmlfallback

If run available for public running you should propably limit its resources:

docker run --cpus=1 --memory=128m --rm -i --read-only derjesko/mosmlfallback

If don't want the user running this to have dockerrights make shure docker is in the docker group then change the ownership of dockerrun like this:

chown docker:docker dockerrun.sh
chmod 755 dockerrun.sh
chmod u+s dockerrun.sh

Now you can start a mosml docker container via:

./sockerrun.sh