chore: add docker support
This commit is contained in:
parent
5962d20ba7
commit
a2df625d83
|
@ -0,0 +1,7 @@
|
||||||
|
FROM alpine:3.7
|
||||||
|
|
||||||
|
RUN apk --update --no-cache add kmod binutils grep perl
|
||||||
|
|
||||||
|
COPY . /check
|
||||||
|
|
||||||
|
ENTRYPOINT ["/check/spectre-meltdown-checker.sh"]
|
|
@ -44,6 +44,13 @@ chmod +x spectre-meltdown-checker.sh
|
||||||
sudo ./spectre-meltdown-checker.sh
|
sudo ./spectre-meltdown-checker.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run the script in a docker container
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker build -t spectre-meltdown-checker .
|
||||||
|
docker run --rm --privileged -v /boot:/boot:ro -v /lib/modules:/lib/modules:ro -v /dev/cpu:/dev/cpu:ro spectre-meltdown-checker
|
||||||
|
```
|
||||||
|
|
||||||
## Example of script output
|
## Example of script output
|
||||||
|
|
||||||
- Intel Haswell CPU running under Ubuntu 16.04 LTS
|
- Intel Haswell CPU running under Ubuntu 16.04 LTS
|
||||||
|
|
Loading…
Reference in New Issue