From 22ccf70138eb442abe61ba1e25efc3829e884c55 Mon Sep 17 00:00:00 2001 From: Elias Grande Date: Tue, 27 Jul 2021 20:52:35 +0200 Subject: [PATCH] Dagda works fine again --- .travis.yml | 21 ------------------- README.md | 7 ------- .../analysis/runtime/sysdig_falco_monitor.py | 4 +++- 3 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 926df7b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: required -language: python -python: - - "3.8" -services: - - docker -install: - - pip install -r requirements.txt -before_script: - - pip install python-coveralls -script: - - make test -after_success: - - coveralls - - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - docker build --tag "$DOCKER_USERNAME"/dagda:0.8.0 .; - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; - docker push "$DOCKER_USERNAME"/dagda:0.8.0; - fi -notifications: - webhooks: https://app.fossa.io/hooks/travisci \ No newline at end of file diff --git a/README.md b/README.md index f8fde9a..3139cad 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,7 @@ # Dagda -[![Build Status](https://travis-ci.org/eliasgranderubio/dagda.svg?branch=master)](https://travis-ci.org/eliasgranderubio/dagda) -[![Coverage Status](https://coveralls.io/repos/github/eliasgranderubio/dagda/badge.svg?branch=master)](https://coveralls.io/github/eliasgranderubio/dagda?branch=master) [![Python](https://img.shields.io/badge/python-3.8-blue.svg)](https://github.com/eliasgranderubio/dagda) [![Docker Pulls](https://img.shields.io/docker/pulls/3grander/dagda.svg)](https://hub.docker.com/r/3grander/dagda/) [![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://github.com/eliasgranderubio/dagda) -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Feliasgranderubio%2Fdagda.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Feliasgranderubio%2Fdagda?ref=badge_shield) **Dagda** is a tool to perform static analysis of known vulnerabilities, trojans, viruses, malware & other malicious threats in docker images/containers and to monitor the docker daemon and running docker containers for detecting anomalous activities. @@ -863,7 +860,3 @@ See the [Change Log](https://github.com/eliasgranderubio/dagda/wiki/Change-Log) ## Bugs and Feedback For bugs, questions and discussions please use the [Github Issues](https://github.com/eliasgranderubio/dagda/issues) or ping me on Twitter (@3grander). - - -## License -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Feliasgranderubio%2Fdagda.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Feliasgranderubio%2Fdagda?ref=badge_large) diff --git a/dagda/analysis/runtime/sysdig_falco_monitor.py b/dagda/analysis/runtime/sysdig_falco_monitor.py index bb17251..f36d3ee 100644 --- a/dagda/analysis/runtime/sysdig_falco_monitor.py +++ b/dagda/analysis/runtime/sysdig_falco_monitor.py @@ -120,7 +120,9 @@ def run(self): SysdigFalcoMonitor._falco_output_filename + self.falco_rules) - # Wait 3 seconds for sysdig/falco start up and creates the output file + if not os.path.isfile(SysdigFalcoMonitor._falco_output_filename): + os.mknod(SysdigFalcoMonitor._falco_output_filename) + # Wait 3 seconds for sysdig/falco start up time.sleep(3) # Check output file and running docker container