Skip to content

Commit 16ebe84

Browse files
committed
Add Docker to the README
1 parent 7fb9f44 commit 16ebe84

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ SPDX-License-Identifier: Apache-2.0
3535
- [Ex 1. Local Source Analysis](#ex-1-local-source-analysis)
3636
- [Ex 2. Download Link and analyze](#ex-2-download-link-and-analyze)
3737
- [📁 Result](#-result)
38+
- [🐳 How to run using Docker](#-how-to-run-using-docker)
3839
- [👏 How to report issue](#-how-to-report-issue)
3940
- [📄 License](#-license)
4041

@@ -111,6 +112,17 @@ $ tree
111112
- FOSSLight_Report-[datetime].xlsx : OSS Report format file that outputs source code analysis, binary analysis, and dependency analysis results.
112113
- fosslight_raw_data_[datetime] directory: Directory in which raw data files are created as a result of analysis
113114

115+
## 🐳 How to run using Docker
116+
1. Build image using Dockerfile.
117+
```
118+
$docker build -t fosslight .
119+
```
120+
2. Run with the image you built.
121+
ex. Output: /Users/fosslight_source_scanner/test_output, Path to be analyzed: tests/test_files
122+
```
123+
$docker run -it -v /Users/fosslight_source_scanner/test_output:/app/output fosslight -p tests/test_files -o output
124+
```
125+
114126
## 👏 How to report issue
115127

116128
Please report any ideas or bugs to improve by creating an issue in [fosslight_scanner repository][cl].

0 commit comments

Comments
 (0)