Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and Makefile to simplify the development process (espe…
…cially when it comes to running e2e tests) (#78)
- Loading branch information
1 parent
64e8146
commit 1c113a5
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) . | ||
|