From abd52dfeb0413199e1303986255cf480cc990324 Mon Sep 17 00:00:00 2001 From: Chris van Run Date: Fri, 20 Sep 2024 11:16:25 +0200 Subject: [PATCH 1/3] Fix warning by removing redundant Dockerfile from platform description --- .../example-algorithm{{cookiecutter._}}/Dockerfile | 2 +- .../example-evaluation-method{{cookiecutter._}}/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile index 7953241..22b46d7 100644 --- a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 pytorch/pytorch +FROM pytorch/pytorch # Use a 'large' base container to show-case how to load pytorch and use the GPU (when enabled) # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating diff --git a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile index 6bb0424..04bae65 100644 --- a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 docker.io/library/python:3.11-slim +FROM docker.io/library/python:3.11-slim # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating ENV PYTHONUNBUFFERED=1 From 8e3e98842e191eed391b38cf769fe94290626f24 Mon Sep 17 00:00:00 2001 From: Chris van Run Date: Mon, 23 Sep 2024 10:39:14 +0200 Subject: [PATCH 2/3] Revert "Fix warning by removing redundant Dockerfile from platform description" This reverts commit abd52dfeb0413199e1303986255cf480cc990324. --- .../example-algorithm{{cookiecutter._}}/Dockerfile | 2 +- .../example-evaluation-method{{cookiecutter._}}/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile index 22b46d7..7953241 100644 --- a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM pytorch/pytorch +FROM --platform=linux/amd64 pytorch/pytorch # Use a 'large' base container to show-case how to load pytorch and use the GPU (when enabled) # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating diff --git a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile index 04bae65..6bb0424 100644 --- a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/python:3.11-slim +FROM --platform=linux/amd64 docker.io/library/python:3.11-slim # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating ENV PYTHONUNBUFFERED=1 From fa681679c0ea00bfd8be3fd2dc5e281e937a09cf Mon Sep 17 00:00:00 2001 From: Chris van Run Date: Mon, 23 Sep 2024 10:40:22 +0200 Subject: [PATCH 3/3] Add a stage name to suppress warnings --- .../example-algorithm{{cookiecutter._}}/Dockerfile | 2 +- .../example-evaluation-method{{cookiecutter._}}/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile index 7953241..8a13678 100644 --- a/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-algorithm/example-algorithm{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 pytorch/pytorch +FROM --platform=linux/amd64 pytorch/pytorch AS example-algorithm-amd64 # Use a 'large' base container to show-case how to load pytorch and use the GPU (when enabled) # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating diff --git a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile index 6bb0424..8e93354 100644 --- a/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile +++ b/grand_challenge_forge/partials/example-evaluation-method/example-evaluation-method{{cookiecutter._}}/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 docker.io/library/python:3.11-slim +FROM --platform=linux/amd64 docker.io/library/python:3.11-slim AS example-evaluation-amd64 # Ensures that Python output to stdout/stderr is not buffered: prevents missing information when terminating ENV PYTHONUNBUFFERED=1