an application for a toy robot simulation
261
It is a simulation application for a toy robot movement on a square tabletop.
This application can be run interractively, accepts input commands through piped/stdin redirection, and specifying input file as command line parameter.
docker run -it --rm robotdemo
Type the command and end it with newline / Enter key. To quit press Ctrl + C or Ctrl + D.
cat input.txt | docker run -i --rm robotdemo
or
docker run -i --rm robotdemo < input.txt
docker run --rm -v /path/to/input/file:/container/path robotdemo node dist/index.js /container/path
Note: This docker image is a rootless image, make sure the in-container input file can be read by a regular user with uid 1000 and gid 1000.
To run the test
docker run --rm robotdemo jest
To run with coverage
docker run --rm robotdemo jest --coverage
Content type
Image
Digest
sha256:82a140fec…
Size
90.6 MB
Last updated
almost 3 years ago
docker pull suyono/robotdemo