Merge pull request #38 from theonlydoo/Dockerfile

Sparse dockerization
This commit is contained in:
Kota Kanbe
2016-04-21 15:27:18 +09:00
7 changed files with 25 additions and 0 deletions

14
docker/Dockerfile Normal file
View 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
View File

@@ -0,0 +1,2 @@
# Must do
* Edit your config.toml to match your infrastructure

1
docker/config.toml Normal file
View File

@@ -0,0 +1 @@

2
docker/fetch.sh Normal file
View 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
View File

@@ -0,0 +1 @@

1
docker/id_rsa.pub Normal file
View File

@@ -0,0 +1 @@

4
docker/run.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
go-cve-dictionary server &
sleep 2
vuls scan -config /app/config.toml -report-slack