Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
docker build -t lagrange .

run:
docker run -it lagrange bash

test:
docker run -it lagrange
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ 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`