From 8db29207d575761fd6521c60857b1341597cfa37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Carlier?= Date: Mon, 22 Jun 2020 11:05:49 +0200 Subject: [PATCH] Add docker support Running tests can now be done without a lua interpretter or ruby installed on your machine. Only Docker is required. --- Dockerfile | 7 +++++++ README.md | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..097bb59 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM nickblah/lua:5.1-alpine3.9 +RUN apk add ruby ruby-rdoc +WORKDIR /app +COPY . /app +RUN gem install bundler:1.11.2 +RUN bundle install +ENTRYPOINT [ "cucumber" ] diff --git a/README.md b/README.md new file mode 100644 index 0000000..f84e9aa --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +## Test with Docker: + +If you have [Docker](https://docs.docker.com/get-docker/) installed on your machine, you can run tests without having a lua interpretter or ruby installed. Just run the following commands: + +Build docker image: + +```bash +docker build -t forth-test . +``` + +Run tests: + +```bash +docker run -it -v $(pwd):/app forth-test +```