Sparse dockerization
This commit is contained in:
14
docker/Dockerfile
Normal file
14
docker/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM golang:1.6
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y git openssh-client gcc
|
||||
WORKDIR /app
|
||||
RUN go get github.com/kotakanbe/go-cve-dictionary
|
||||
RUN go get github.com/future-architect/vuls
|
||||
COPY fetch.sh .
|
||||
RUN /bin/bash /app/fetch.sh
|
||||
COPY config.toml .
|
||||
COPY run.sh .
|
||||
ENTRYPOINT ["/bin/bash", "/app/run.sh"]
|
||||
COPY id_rsa .
|
||||
COPY id_rsa.pub .
|
||||
2
docker/README.md
Normal file
2
docker/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Must do
|
||||
* Edit your config.toml to match your infrastructure
|
||||
1
docker/config.toml
Normal file
1
docker/config.toml
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
2
docker/fetch.sh
Normal file
2
docker/fetch.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
for i in {2002..2016}; do go-cve-dictionary fetchnvd -years $i ; done
|
||||
1
docker/id_rsa
Normal file
1
docker/id_rsa
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
docker/id_rsa.pub
Normal file
1
docker/id_rsa.pub
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
4
docker/run.sh
Normal file
4
docker/run.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
go-cve-dictionary server &
|
||||
sleep 2
|
||||
vuls scan -config /app/config.toml -report-slack
|
||||
Reference in New Issue
Block a user