Skip to content

Commit

Permalink
trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryosuke Tomita committed Dec 17, 2023
1 parent 5ddd045 commit 3041398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions copilot/pipelines/react-app-pipeline/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ phases:
done;
done;
- ls -lah ./infrastructure
- for f in ./infrastructure/*; do echo $f; cat $f; done
# Run trivy scan on the docker images.
# - trivy image --vuln-type os --no-progress --format table -o container-scanning-report.txt --severity CRITICAL,HIGH $(jq -r '.services[].image' ./infrastructure/prod-svc-prod-env.stack.yml)
# - cat container-scanning-report.txt
- trivy image --vuln-type os --no-progress --format table -o container-scanning-report.txt --severity CRITICAL,HIGH $(jq -r '.Parameters[].ContainerImage' ./infrastructure/dev-svc-dev-env.params.json)
- cat container-scanning-report.txt
artifacts:
files:
- "infrastructure/*"
2 changes: 1 addition & 1 deletion docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
##########################################################################
docker rmi react-app:latest -f
docker build -t react-app:latest . --no-cache
docker run -d -p 80:8080 react-app:latest # -p localport:containerport
docker run -p 80:8080 react-app:latest # -p localport:containerport

# open your browser and go to `localhost:80`.

0 comments on commit 3041398

Please sign in to comment.