Skip to content

Commit

Permalink
Add Dockerfile and Makefile to simplify the development process (espe…
Browse files Browse the repository at this point in the history
…cially when it comes to running e2e tests) (#78)
  • Loading branch information
matbur authored and izeigerman committed Mar 20, 2019
1 parent 64e8146 commit 1c113a5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
@@ -0,0 +1,14 @@
FROM python:3.7

ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64

RUN apt-get update && \
apt-get install --no-install-recommends -y openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*

WORKDIR /m2cgen

COPY requirements-test.txt ./
RUN pip install --no-cache-dir -r requirements-test.txt

CMD python setup.py develop && pytest -v -x --fast
8 changes: 8 additions & 0 deletions Makefile
@@ -0,0 +1,8 @@
DOCKER_IMAGE = m2cgen

docker-test:
docker run --rm -it -v "$$PWD":"/m2cgen" $(DOCKER_IMAGE)

docker-build:
docker build -t $(DOCKER_IMAGE) .

0 comments on commit 1c113a5

Please sign in to comment.