commit
280aa72293
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN useradd -d /lynis-report-converter -U lynis
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get upgrade -y \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
htmldoc libxml-writer-perl libarchive-zip-perl libjson-perl \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
COPY . /lynis-report-converter
|
||||||
|
|
||||||
|
USER lynis
|
||||||
|
|
||||||
|
WORKDIR /lynis-report-converter
|
||||||
|
|
||||||
|
ENTRYPOINT ["/lynis-report-converter/lynis-report-converter.pl"]
|
||||||
|
CMD ["--help"]
|
|
@ -81,6 +81,13 @@ Where:
|
||||||
-o|--output Specifies the output file to print the report to.
|
-o|--output Specifies the output file to print the report to.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build -t <imagename> .
|
||||||
|
docker run --rm -v /local-report-dir:/reports lynis-report-converter -o /reports/report.html -i /reports/lynis-report.dat
|
||||||
|
```
|
||||||
|
|
||||||
### Output Features:
|
### Output Features:
|
||||||
* HTML (default)
|
* HTML (default)
|
||||||
* Summarizes the lynis report into a single HTML file.
|
* Summarizes the lynis report into a single HTML file.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user