Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial swing at Dockerfile/.drone.yml.
- Loading branch information
Greg Taylor
committed
Feb 9, 2016
1 parent
32c773c
commit b67e40a
Showing
6 changed files
with
43 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 @@ | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.jnCS4PAmlajV96zWeHyjTOvLdmwynaZ8Aj-3oPas4ud2irPaT9teXyPG2cpTNIy1HulU-wZ6HIo1wPq_l1tGqDVwUjeAlvy1GXsJw_hZPv67dERZgPfH44gygf3YH3s75BeuhIvLLc9R3jxLfED_eda9WoY7ShjegckfBtjxbKE7ZZdMFpWqYcfHq9MJfi9ZsmPB7gOnRUx8YxcXyBA4OKglMElKeTkAH3TRXLIyFMhULpr3rjbvHIBoMgWQ_zyW7K1bTbvVKvGhgZauC7XLzvIVUmP7Tq1vY0HWF3Wek3a1b6kOZwewvzSP2mIYr1PSboajYWPL4vSNlPHw0ZTRrg.rACXS3OT_QlZMR5W.DM-flUC_9fgmBkZD5tPAyK1I6ESjShVWiqTIDWSgEEYK4OiXEI2l5SPyQC_Vyd9iYhAYQTLL0g5ngGbZ-AOlwWApDrQZvxsOn5UqgZnvEIkBXaAHlhIfWFeA9yY5Kyv4E531BnicSxQ.PhfPxKIjuypGIUXlRdnczg |
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,25 @@ | ||
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 |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
*.swp | ||
*.tmp | ||
*.egg-info | ||
secrets.yml |
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,15 @@ | ||
FROM python:3.5.1-alpine | ||
MAINTAINER Greg Taylor <gtaylor@gc-taylor.com> | ||
|
||
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 |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
nose==1.3.7 | ||
flake8==2.5.2 |
Empty file.