Skip to content

Commit

Permalink
Merge pull request #28 from N0K0/DockerFileSetup
Browse files Browse the repository at this point in the history
Docker file setup
  • Loading branch information
m-1-k-3 committed Jan 18, 2021
2 parents 79fe723 + 759d48e commit d372bf8
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Dockerfile
docker-compose.yml
.dockerignore
.git
.github
documentation
CONTRIBUTING.md
LICENSE
README.md
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM kalilinux/kali-rolling

RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install wget kmod procps

WORKDIR /app
ADD . /app

RUN yes | ./installer.sh

ENTRYPOINT [ "/bin/bash" ]

22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,28 @@ Help
-h Print this help message
```

#### Docker Container
There is a simple docker-compose setup added which allows you to do everything outside use the cwe-checker

To run it simply do the following:

Build it:
```
docker-compose build emba
```

Run it:
```
FIRMWARE=/absolute/path/to/firmware LOG=/home/n/firmware_log/ docker-compose run emba
```

This will drop you a shell in the folder where emba has been added.
The firmware is located at `/firmware/` and the log directory at `/log/`

```
./emba.sh -l /log/ -f /firmware/
```

#### Examples

##### Static firmware testing:
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3"
services:
emba:
build: .
volumes:
- ${FIRMWARE}:/firmware
- ${LOG}:/log
2 changes: 1 addition & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# emba is licensed under GPLv3
#
# Author(s): Michael Messner, Pascal Eckmann
# Contributor(s): Stefan Haboeck
# Contributor(s): Stefan Haboeck, Nikolas Papaioannou

# Description: installs needed stuff:
# Yara rules
Expand Down

0 comments on commit d372bf8

Please sign in to comment.