nscuro / faraday-docker Goto Github PK
View Code? Open in Web Editor NEWDocker & Docker Compose setup for FaradaySEC
License: MIT License
Docker & Docker Compose setup for FaradaySEC
License: MIT License
edit: just realized that my comment didn't post. Yikes. Sorry about that.
Background
I have been trying to get faraday running on a docker container to intermingle with a system that I'm building, but have been wrestling with it for a while. High level overview of what steps I've taken so far:
The Issue
When working with faraday-docker (which is what I am focusing this comment is focused on), the app container has been unable to start. The docker logs show the following:
SyntaxError: invalid syntax Traceback (most recent call last): File "/root/faraday/faraday-server.py", line 20, in <module> from server.web import app File "/root/faraday/server/web.py", line 38, in <module> app = create_app() # creates a Flask(__name__) app File "/root/faraday/server/app.py", line 260, in create_app register_blueprints(app) File "/root/faraday/server/app.py", line 64, in register_blueprints from server.api.modules.commandsrun import commandsrun_api File "/root/faraday/server/api/modules/commandsrun.py", line 12, in <module> from server.api.base import AutoSchema, ReadWriteWorkspacedView, PaginatedMixin File "/root/faraday/server/api/base.py", line 20, in <module> from marshmallow_sqlalchemy import ModelConverter File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module> from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/schema.py", line 101 class TableSchema(ma.Schema, metaclass=TableSchemaMeta):
Note that the syntax error was pointing to the "metaclass=Table" on the last line. It didn't get copied.
Attempted fix
This page (https://stackoverflow.com/questions/57837460/airflow-initdb-failed-in-amazon-linux) suggested that they had a marshmallow version mismatch issue, so I figured I would give it a try. I forked the faraday-docker git and the the official faraday git. Edited the server-requirements.txt on faraday, and referenced my own forked repo on the forked faraday-docker.
Alas, it did not fix anything, same issues.
Going forward
I've been trying to do several workarounds but have had issues building from scracth based on Faraday's instructions. I would really like to figure this out for my proof of concept thing that I am working on, so if you have suggestions, please let me know! I'm not too familiar with working with these python modules.
Thanks! And cheers to nscuro for providing this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.