Commit b67e40a7 authored by Greg Taylor's avatar Greg Taylor

Initial swing at Dockerfile/.drone.yml.

parent 32c773cc
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.jnCS4PAmlajV96zWeHyjTOvLdmwynaZ8Aj-3oPas4ud2irPaT9teXyPG2cpTNIy1HulU-wZ6HIo1wPq_l1tGqDVwUjeAlvy1GXsJw_hZPv67dERZgPfH44gygf3YH3s75BeuhIvLLc9R3jxLfED_eda9WoY7ShjegckfBtjxbKE7ZZdMFpWqYcfHq9MJfi9ZsmPB7gOnRUx8YxcXyBA4OKglMElKeTkAH3TRXLIyFMhULpr3rjbvHIBoMgWQ_zyW7K1bTbvVKvGhgZauC7XLzvIVUmP7Tq1vY0HWF3Wek3a1b6kOZwewvzSP2mIYr1PSboajYWPL4vSNlPHw0ZTRrg.rACXS3OT_QlZMR5W.DM-flUC_9fgmBkZD5tPAyK1I6ESjShVWiqTIDWSgEEYK4OiXEI2l5SPyQC_Vyd9iYhAYQTLL0g5ngGbZ-AOlwWApDrQZvxsOn5UqgZnvEIkBXaAHlhIfWFeA9yY5Kyv4E531BnicSxQ.PhfPxKIjuypGIUXlRdnczg
cache:
mount:
- wheeldir
build:
image: python:3.5.1-alpine
commands:
- pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
- pip wheel -r test-requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
- pip install --use-wheel --no-index --find-links=wheeldir -r requirements.txt
- pip install --use-wheel --no-index --find-links=wheeldir -r test-requirements.txt
- python setup.py install
- flake8 dronedemo
- mkdir -p coverage
- nosetests -v tests/
publish:
docker:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASS
email: $$DOCKER_EMAIL
repo: dronedemos/drone-with-python
tag: $$TAG
when:
event: tag
......@@ -4,3 +4,4 @@
*.swp
*.tmp
*.egg-info
secrets.yml
FROM python:3.5.1-alpine
MAINTAINER Greg Taylor <[email protected]>
COPY wheeldir /opt/app/wheeldir
# These are copied and installed first in order to take maximum advantage
# of Docker layer caching (if enabled).
COPY *requirements.txt /opt/app/src/
RUN pip install --use-wheel --no-index --find-links=/opt/app/wheeldir -r /opt/app/src/requirements.txt
RUN pip install --use-wheel --no-index --find-links=/opt/app/wheeldir -r /opt/app/src/test-requirements.txt
COPY . /opt/app/src/
WORKDIR /opt/app/src
RUN python setup.py install
CMD dronedemo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment