forked from eclecticiq/cabby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Docker support for creating a cabby image for easy access to th…
…e commandline tools.
- Loading branch information
Showing
5 changed files
with
143 additions
and
1 deletion.
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,61 @@ | ||
# Git | ||
.git/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Editor files | ||
*.iml | ||
.idea |
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 |
---|---|---|
|
@@ -52,3 +52,7 @@ docs/_build/ | |
|
||
# PyBuilder | ||
target/ | ||
|
||
# Editor | ||
*.iml | ||
.idea |
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,28 @@ | ||
# Set the base image to Python | ||
FROM python:2.7.9 | ||
MAINTAINER Intelworks <[email protected]> | ||
|
||
# Volume for possible input | ||
VOLUME [ "/input" ] | ||
|
||
# Create the working dir and set the working directory | ||
WORKDIR / | ||
|
||
# Requirements | ||
COPY ./requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt \ | ||
&& rm -f requirements.txt | ||
|
||
# Install Cabby | ||
RUN mkdir /cabby | ||
COPY ./ /cabby | ||
RUN cd /cabby \ | ||
&& python setup.py install \ | ||
&& rm -rf /cabby | ||
|
||
# Helper | ||
COPY docker/help.sh /help.sh | ||
|
||
# Give help, unless command is given | ||
CMD [ "/help.sh" ] | ||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
echo " | ||
Commands to be run: | ||
taxii-discovery | ||
taxii-poll | ||
taxii-collections | ||
taxii-push | ||
taxii-subscription | ||
e.g. docker run -ti cabby taxii-discovery --host taxxii.server --path /services/discovery | ||
More information available at: http://cabby.readthedocs.org | ||
Or you can choose to drop back into a shell by providing: bash as the command: | ||
docker run -ti cabby bash | ||
" |
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