-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
265 additions
and
18 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
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,39 @@ | ||
attrs==16.1.0 | ||
cffi==1.7.0 | ||
ConcurrentLogHandler==0.9.1 | ||
cryptography==1.5 | ||
cssselect==0.9.2 | ||
enum34==1.1.6 | ||
funcsigs==1.0.2 | ||
future==0.15.2 | ||
idna==2.1 | ||
ipaddress==1.0.16 | ||
kafka-python==1.3.1 | ||
kazoo==2.2.1 | ||
lxml==3.6.4 | ||
mock==2.0.0 | ||
nose==1.3.7 | ||
parsel==1.0.3 | ||
pbr==1.10.0 | ||
pyasn1==0.1.9 | ||
pyasn1-modules==0.0.8 | ||
pycparser==2.14 | ||
PyDispatcher==2.0.5 | ||
pyOpenSSL==16.1.0 | ||
python-json-logger==0.1.5 | ||
PyYAML==3.12 | ||
queuelib==1.4.2 | ||
redis==2.10.5 | ||
requests==2.11.1 | ||
requests-file==1.4 | ||
retrying==1.3.3 | ||
Scrapy==1.1.2 | ||
scutils==1.1.0 | ||
service-identity==16.0.0 | ||
six==1.10.0 | ||
testfixtures==4.10.0 | ||
tldextract==2.0.1 | ||
Twisted==16.4.0 | ||
ujson==1.35 | ||
w3lib==1.15.0 | ||
zope.interface==4.2.0 |
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
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,59 @@ | ||
FROM python:2.7.12-alpine | ||
MAINTAINER Madison Bahmer <madison.bahmer@istresearch.com> | ||
|
||
|
||
# copy crawler own requirements.txt with its dependencies | ||
COPY crawler/requirements.txt /usr/src/app/ | ||
# scutils dev version install (not in pip yet) | ||
# due utils folder located above Dockerfile folder it can not be used | ||
# for Docker Hub Automated Build feature (but should, see wiki notes) | ||
COPY utils /tmp/utils | ||
|
||
# Combine run command to create single intermeiate image layer | ||
# This MANDATORY because developments dependencies are huge. | ||
RUN mkdir -p /usr/src/app \ | ||
&& cd /usr/src/app \ | ||
# Installing runtime dependencies | ||
&& apk --no-cache add \ | ||
curl \ | ||
openssl \ | ||
libffi \ | ||
libxml2 \ | ||
libxslt \ | ||
# Installing buildtime dependencies. They will be removed at end of this | ||
# commands sequence. | ||
&& apk --no-cache add --virtual build-dependencies \ | ||
build-base \ | ||
openssl-dev \ | ||
libffi-dev \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
# Updating pip itself before installing packages from requirements.txt | ||
&& pip install --no-cache-dir pip setuptools \ | ||
# Installing pip packages from requirements.txt | ||
&& pip install --no-cache-dir -r requirements.txt \ | ||
&& cd /tmp/utils \ | ||
# Removing release version of scutils package | ||
&& pip uninstall scutils -y \ | ||
# Installing development version of scutils package | ||
&& python setup.py install \ | ||
&& cd /usr/src/app \ | ||
# Removing build dependencies leaving image layer clean and neat | ||
&& apk del build-dependencies | ||
|
||
|
||
# move codebase over | ||
COPY crawler /usr/src/app | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# override settings via localsettings.py | ||
COPY docker/crawler/settings.py /usr/src/app/crawling/localsettings.py | ||
|
||
# copy testing script into container | ||
COPY docker/run_docker_tests.sh /usr/src/app/run_docker_tests.sh | ||
|
||
# set up environment variables | ||
|
||
# run command | ||
CMD ["scrapy", "runspider", "crawling/spiders/link_spider.py"] |
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
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,51 @@ | ||
FROM python:2.7.12-alpine | ||
MAINTAINER Madison Bahmer <madison.bahmer@istresearch.com> | ||
|
||
|
||
# copy kafka-monitor own requirements.txt with its dependencies | ||
COPY kafka-monitor/requirements.txt /usr/src/app/ | ||
# scutils dev version install (not in pip yet) | ||
# due utils folder located above Dockerfile folder it can not be used | ||
# for Docker Hub Automated Build feature (but should, see wiki notes) | ||
COPY utils /tmp/utils | ||
|
||
# Combine run command to create single intermeiate image layer | ||
# This MANDATORY because developments dependencies are huge. | ||
RUN mkdir -p /usr/src/app \ | ||
&& cd /usr/src/app \ | ||
# Installing runtime dependencies | ||
&& apk --no-cache add \ | ||
curl \ | ||
# Installing buildtime dependencies. They will be removed at end of this | ||
# commands sequence. | ||
&& apk --no-cache add --virtual build-dependencies \ | ||
build-base \ | ||
# Updating pip itself before installing packages from requirements.txt | ||
&& pip install --no-cache-dir pip setuptools \ | ||
# Installing pip packages from requirements.txt | ||
&& pip install --no-cache-dir -r requirements.txt \ | ||
&& cd /tmp/utils \ | ||
# Removing release version of scutils package | ||
&& pip uninstall scutils -y \ | ||
# Installing development version of scutils package | ||
&& python setup.py install \ | ||
&& cd /usr/src/app \ | ||
# Removing build dependencies leaving image layer clean and neat | ||
&& apk del build-dependencies | ||
|
||
# move codebase over | ||
COPY kafka-monitor /usr/src/app | ||
|
||
|
||
WORKDIR /usr/src/app | ||
|
||
# override settings via localsettings.py | ||
COPY docker/kafka-monitor/settings.py /usr/src/app/localsettings.py | ||
|
||
# copy testing script into container | ||
COPY docker/run_docker_tests.sh /usr/src/app/run_docker_tests.sh | ||
|
||
# set up environment variables | ||
|
||
# run command | ||
CMD ["python", "kafka_monitor.py", "run"] |
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
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,50 @@ | ||
FROM python:2.7.12-alpine | ||
MAINTAINER Madison Bahmer <madison.bahmer@istresearch.com> | ||
|
||
# copy redis-monitor own requirements.txt with its dependencies | ||
COPY redis-monitor/requirements.txt /usr/src/app/ | ||
# scutils dev version install (not in pip yet) | ||
# due utils folder located above Dockerfile folder it can not be used | ||
# for Docker Hub Automated Build feature (but should, see wiki notes) | ||
COPY utils /tmp/utils | ||
|
||
# Combine run command to create single intermeiate image layer | ||
# This MANDATORY because developments dependencies are huge. | ||
RUN mkdir -p /usr/src/app \ | ||
&& cd /usr/src/app \ | ||
# Installing runtime dependencies | ||
&& apk --no-cache add \ | ||
curl \ | ||
# Installing buildtime dependencies. They will be removed at end of this | ||
# commands sequence. | ||
&& apk --no-cache add --virtual build-dependencies \ | ||
build-base \ | ||
# Updating pip itself before installing packages from requirements.txt | ||
&& pip install --no-cache-dir pip setuptools \ | ||
# Installing pip packages from requirements.txt | ||
&& pip install --no-cache-dir -r requirements.txt \ | ||
&& cd /tmp/utils \ | ||
# Removing release version of scutils package | ||
&& pip uninstall scutils -y \ | ||
# Installing development version of scutils package | ||
&& python setup.py install \ | ||
&& cd /usr/src/app \ | ||
# Removing build dependencies leaving image layer clean and neat | ||
&& apk del build-dependencies | ||
|
||
# move codebase over | ||
COPY redis-monitor /usr/src/app | ||
|
||
|
||
WORKDIR /usr/src/app | ||
|
||
# override settings via localsettings.py | ||
COPY docker/redis-monitor/settings.py /usr/src/app/localsettings.py | ||
|
||
# copy testing script into container | ||
COPY docker/run_docker_tests.sh /usr/src/app/run_docker_tests.sh | ||
|
||
# set up environment variables | ||
|
||
# run command | ||
CMD ["python", "redis_monitor.py"] |
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
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,23 @@ | ||
ConcurrentLogHandler==0.9.1 | ||
funcsigs==1.0.2 | ||
functools32==3.2.3.post2 | ||
future==0.15.2 | ||
idna==2.1 | ||
jsonschema==2.5.1 | ||
kafka-python==1.3.1 | ||
kazoo==2.2.1 | ||
mock==2.0.0 | ||
nose==1.3.7 | ||
pbr==1.10.0 | ||
python-json-logger==0.1.5 | ||
python-redis-lock==3.1.0 | ||
PyYAML==3.12 | ||
redis==2.10.5 | ||
requests==2.11.1 | ||
requests-file==1.4 | ||
retrying==1.3.3 | ||
scutils==1.1.0 | ||
six==1.10.0 | ||
testfixtures==4.10.0 | ||
tldextract==2.0.1 | ||
ujson==1.35 |
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,17 @@ | ||
ConcurrentLogHandler==0.9.1 | ||
funcsigs==1.0.2 | ||
future==0.15.2 | ||
kafka-python==1.3.1 | ||
kazoo==2.2.1 | ||
mock==2.0.0 | ||
nose==1.3.7 | ||
pbr==1.10.0 | ||
python-json-logger==0.1.5 | ||
python-redis-lock==3.1.0 | ||
PyYAML==3.12 | ||
redis==2.10.5 | ||
retrying==1.3.3 | ||
scutils==1.1.0 | ||
six==1.10.0 | ||
testfixtures==4.10.0 | ||
ujson==1.35 |
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,3 +1,5 @@ | ||
# this file is deprecated and will be removed | ||
|
||
cffi==1.6.0 | ||
characteristic==14.3.0 | ||
ConcurrentLogHandler==0.9.1 | ||
|
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