mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-04 18:28:03 +01:00
chore: docker compose v2
The `docker-compose` command has been replaced by `docker compose`. The "version" tag has also been deprecated in docker-compose.yml.
This commit is contained in:
parent
388d44edbd
commit
e806e4bc41
6
.github/workflows/check.yml
vendored
6
.github/workflows/check.yml
vendored
@ -32,11 +32,11 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "OK $nb CVEs reported"
|
echo "OK $nb CVEs reported"
|
||||||
fi
|
fi
|
||||||
- name: check docker-compose run execution
|
- name: check docker compose run execution
|
||||||
run: |
|
run: |
|
||||||
expected=19
|
expected=19
|
||||||
docker-compose build
|
docker compose build
|
||||||
nb=$(docker-compose run --rm spectre-meltdown-checker --batch json | jq '.[]|.CVE' | wc -l)
|
nb=$(docker compose run --rm spectre-meltdown-checker --batch json | jq '.[]|.CVE' | wc -l)
|
||||||
if [ "$nb" -ne "$expected" ]; then
|
if [ "$nb" -ne "$expected" ]; then
|
||||||
echo "Invalid number of CVEs reported: $nb instead of $expected"
|
echo "Invalid number of CVEs reported: $nb instead of $expected"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -76,10 +76,13 @@ sudo ./spectre-meltdown-checker.sh
|
|||||||
#### With docker-compose
|
#### With docker-compose
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose build
|
docker compose build
|
||||||
docker-compose run --rm spectre-meltdown-checker
|
docker compose run --rm spectre-meltdown-checker
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that on older versions of docker, `docker-compose` is a separate command, so you might
|
||||||
|
need to replace the two `docker compose` occurences above by `docker-compose`.
|
||||||
|
|
||||||
#### Without docker-compose
|
#### Without docker-compose
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
version: '2'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
spectre-meltdown-checker:
|
spectre-meltdown-checker:
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user