mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
23fb91d326
This commit separates the AIL Framework services into individual Docker containers that can be managed with docker-compose. It's intended to ease the installation, development and troubleshooting procedures for all-in-one deployments. No changes to architecture or base code are required in this commit. Changes to existing files: .gitignore * Ignore pystemon archive directory Dockerfile: * Add AIL shell environment variables * Install pystemon and crawler pip requirements into AIL virtual environment Docker-compose notes: * All containers are participating in a service network `network_mode: service:flask`. This allows the containers to share the same IP namespace to accommodate hard-coded localhost entries. * By default persistent data is saved to the following directories in the local AIL framework git directory: PASTES, HASHS, CRAWLED_SCREENSHOTS, pystemon/archives This was tested with docker-ce on Ubuntu 16.04 and MacOS. A typical deployment would look like: ``` git clone https://github.com/CIRCL/AIL-framework.git cd AIL-framework cp bin/packages/config.cfg.docker-compose-sample bin/packages/config.cfg (optionally enable activate_crawler in config.cfg) docker-compose build docker-compose up -d ```
48 lines
680 B
Text
48 lines
680 B
Text
# Temp files
|
|
*.swp
|
|
*.pyc
|
|
*.swo
|
|
|
|
# Install Dirs
|
|
AILENV
|
|
redis-leveldb
|
|
redis
|
|
ardb
|
|
faup
|
|
tlsh
|
|
Blooms
|
|
PASTES
|
|
CRAWLED_SCREENSHOT
|
|
BASE64
|
|
HASHS
|
|
DATA_ARDB
|
|
indexdir/
|
|
logs/
|
|
old/
|
|
|
|
# Webstuff
|
|
var/www/static/
|
|
!var/www/static/css/dygraph_gallery.css
|
|
!var/www/static/js/indexjavascript.js
|
|
!var/www/static/js/moduleTrending.js
|
|
!var/www/static/js/plot-graph.js
|
|
!var/www/static/js/trendingchart.js
|
|
var/www/templates/header.html
|
|
var/www/submitted
|
|
|
|
# Local config
|
|
bin/packages/config.cfg
|
|
bin/packages/config.cfg.backup
|
|
configs/keys
|
|
files
|
|
|
|
# Pystemon archives
|
|
pystemon/archives
|
|
|
|
# installed files
|
|
nltk_data/
|
|
doc/all_modules.txt
|
|
# auto generated
|
|
doc/module-data-flow.png
|
|
doc/data-flow.png
|
|
doc/statistics
|