Skip to content

Commit e7bfec5

Browse files
authored
Merge pull request #1 from segmentio/docker-and-make-build
Add Docker and Makefile
2 parents 56db012 + 5179894 commit e7bfec5

File tree

15 files changed

+28
-0
lines changed

15 files changed

+28
-0
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
.DS_Store
131+
reports

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:latest
2+
3+
COPY . /papi-python-sdk
4+
WORKDIR /papi-python-sdk
5+
6+
# Install runtime dependencies
7+
RUN pip3 install -r requirements.txt
8+
RUN pip3 install -r ut-requirements.txt
9+
RUN pip3 install tox

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
build:
2+
docker build . -t segmentio/papi-python-sdk
3+
.PHONY: build
4+
5+
test:
6+
docker run -v "$(PWD)/reports:/papi-python-sdk/reports" segmentio/papi-python-sdk tox
7+
.PHONY: test
8+
9+
console:
10+
docker run -ti segmentio/papi-python-sdk python
11+
.PHONY: console

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Installing Library Dependencies
1212
1313
$ pip3 install -r requirements.txt
1414
15+
If you prefer to not install Python dependencies on your machine just yet, use Docker and the Makefile to try things out:
16+
17+
.. code-block:: console
18+
19+
$ make build test console
20+
1521
Importing the Library
1622
---------------------
1723
To get started, access the project directory and open a Python console:

docs/.DS_Store

-6 KB
Binary file not shown.

papi/.DS_Store

-10 KB
Binary file not shown.

papi/common/.DS_Store

-6 KB
Binary file not shown.

papi/constructs/.DS_Store

-6 KB
Binary file not shown.

papi/errors/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)