From 985b46cfe246ae93d814d7f1d6d542e6b22c730f Mon Sep 17 00:00:00 2001 From: Jack Muskopf Date: Sun, 4 Oct 2020 16:10:38 -0500 Subject: [PATCH 1/3] makefile and dockerfile for quickstart --- Dockerfile | 14 ++++++++++++++ Makefile | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..205371f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:2.7-slim + +# for working inside container +RUN apt update -y && apt install vim -y + +WORKDIR /app + +RUN pip install scipy numpy + +COPY . /app + +RUN pip install -e . + +CMD ["python", "examples/psychotria.lagrange.py"] \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3dd3571 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +build: + docker build -t lagrange . + +run: + docker run -it lagrange bash + +test: + docker run -it lagrange \ No newline at end of file From cc2a12e89c31c84b6c963133a9359a415819fc34 Mon Sep 17 00:00:00 2001 From: Jack Muskopf Date: Sun, 4 Oct 2020 16:13:30 -0500 Subject: [PATCH 2/3] update readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 7441701..1194bba 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,8 @@ Analysis scripts can be created using the web-based configuration tool at http://www.reelab.net/lagrange. This tool lets you configure and download your analysis as a Python script which is then run on your own computer. + +### Quickstart +- requires `docker` and `make` +- `make build && make test` +- `make run # gives shell in docker container with package installed` From 868c1e007fe932e472cc68bcc66da5644ca94bb9 Mon Sep 17 00:00:00 2001 From: Jack Muskopf Date: Sun, 4 Oct 2020 16:14:22 -0500 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1194bba..034fd0d 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,6 @@ own computer. ### Quickstart - requires `docker` and `make` -- `make build && make test` +- `make build` +- `make test` - `make run # gives shell in docker container with package installed`