Skip to content

Add Docker and Makefile #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 26, 2021
Merged
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
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,5 @@ dmypy.json

# Pyre type checker
.pyre/
.DS_Store
reports
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:latest

COPY . /papi-python-sdk
WORKDIR /papi-python-sdk

# Install runtime dependencies
RUN pip3 install -r requirements.txt
RUN pip3 install -r ut-requirements.txt
RUN pip3 install tox
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
docker build . -t segmentio/papi-python-sdk
.PHONY: build

test:
docker run -v "$(PWD)/reports:/papi-python-sdk/reports" segmentio/papi-python-sdk tox
.PHONY: test

console:
docker run -ti segmentio/papi-python-sdk python
.PHONY: console
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Installing Library Dependencies

$ pip3 install -r requirements.txt

If you prefer to not install Python dependencies on your machine just yet, use Docker and the Makefile to try things out:

.. code-block:: console

$ make build test console

Importing the Library
---------------------
To get started, access the project directory and open a Python console:
Expand Down
Binary file removed docs/.DS_Store
Binary file not shown.
Binary file removed papi/.DS_Store
Binary file not shown.
Binary file removed papi/common/.DS_Store
Binary file not shown.
Binary file removed papi/constructs/.DS_Store
Binary file not shown.
Binary file removed papi/errors/.DS_Store
Binary file not shown.
Binary file removed papi/http/.DS_Store
Binary file not shown.
Binary file removed papi/mapper/.DS_Store
Binary file not shown.
Binary file removed papi/objects/.DS_Store
Binary file not shown.
Binary file removed papi/settings/.DS_Store
Binary file not shown.
Empty file added reports/.gitkeep
Empty file.