-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into version-specification-rtorch
- Loading branch information
Showing
7 changed files
with
114 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Docker Scout | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
|
||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
jobs: | ||
scout: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Login to DockerHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_PW }} | ||
- name: Install Docker Scout | ||
run: | | ||
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh | ||
sh install-scout.sh | ||
- name: Docker Scout | ||
run: | | ||
GH_ISSUES=$(gh issue list) | ||
for image in *; do | ||
if [[ -d "$image" ]] && [[ "$image" != ".github" ]] && [[ $GH_ISSUES != *"$image Vulnerability Analysis"* ]]; then | ||
CONTAINER="getwilds/$image:latest" | ||
docker scout cves $CONTAINER --only-fixed --format sarif --output cve_check.json | ||
NUM_VUL=$(jq '.runs[0].tool.driver.rules | length' cve_check.json) | ||
if [[ $NUM_VUL -ge 1 ]]; then | ||
docker scout cves $CONTAINER --only-fixed --format markdown --output cve_check.html | ||
if [[ $(wc -c cve_check.html) -le 65536 ]]; then | ||
gh issue create --repo getwilds/wilds-docker-library --title "$image Vulnerability Analysis" --body-file cve_check.html | ||
else | ||
echo "Significant issues present in bwa, see quickview and recommendations below, but run CVE analysis locally." > qv.txt | ||
echo "\`\`\`" >> qv.txt | ||
docker scout quickview $CONTAINER >> qv.txt | ||
docker scout recommendations $CONTAINER >> qv.txt | ||
echo "\`\`\`" >> qv.txt | ||
gh issue create --repo getwilds/wilds-docker-library --title "$image Vulnerability Analysis" --body-file qv.txt | ||
fi | ||
fi | ||
docker system prune -af | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Using a CUDA base image | ||
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 | ||
|
||
# Adding labels for the GitHub Container Registry | ||
LABEL org.opencontainers.image.title="python-dl" | ||
LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" | ||
LABEL org.opencontainers.image.version="1.0" | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.url=https://hutchdatascience.org/ | ||
LABEL org.opencontainers.image.documentation=https://getwilds.org/ | ||
LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
# Installing Python | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Installing necessary Python modules | ||
RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.13.2 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ | ||
scipy==1.14.1 optuna==4.0.0 joblib==1.4.2 keras==3.6.0 tensorflow==2.17.0 torch==2.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Using a CUDA base image | ||
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 | ||
|
||
# Adding labels for the GitHub Container Registry | ||
LABEL org.opencontainers.image.title="python-dl" | ||
LABEL org.opencontainers.image.description="Docker image for the use of Deep Learning Python packages in FH DaSL's WILDS" | ||
LABEL org.opencontainers.image.version="latest" | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.url=https://hutchdatascience.org/ | ||
LABEL org.opencontainers.image.documentation=https://getwilds.org/ | ||
LABEL org.opencontainers.image.source=https://github.com/getwilds/wilds-docker-library | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
# Installing Python | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends python3=3.10.6-1~22.04.1 python3-pip=22.0.2+dfsg-1ubuntu0.4 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Installing necessary Python modules | ||
RUN pip install --no-cache-dir numpy==1.26.4 seaborn==0.13.2 matplotlib==3.9.2 pandas==2.2.3 scikit-learn==1.5.2 \ | ||
scipy==1.14.1 optuna==4.0.0 joblib==1.4.2 keras==3.6.0 tensorflow==2.17.0 torch==2.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters