Mohamad Bader AA#12
Conversation
…y, and may belong to a fork outside of the repository. removing to readd
This comment has been minimized.
This comment has been minimized.
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
Resolves conflict in .github/workflows/ci.yml header by keeping the explanatory note from main. Also adds the if-guard to Azure/ACR steps so CI stays green on fork PRs (the central Grade ACR push workflow on main does the actual push).
This comment has been minimized.
This comment has been minimized.
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
📝 HackYourFuture auto gradeAssignment Score: 93 / 100 ✅Status: ✅ Passed Test Details |
|
✅ Image pushed to ACR
Browse the registry in the Azure Portal: https://portal.azure.com/#@hackyourfuture.nl/resource/subscriptions/1120c89d-2a5f-4a15-a582-2ea34f0bb5c3/resourceGroups/rg-hyf-data/providers/Microsoft.ContainerRegistry/registries/hyfregistry/repository Task 7 verification: your Dockerfile built and pushed cleanly from commit |
There was a problem hiding this comment.
AI_ASSIST is supposed to look like a structured reflection, not a log dump.
-
Add your actual question(s) to the LLM, in your words
e.g. "How do I pass Azure credentials into a Docker container for DefaultAzureCredential?" -
The code or suggestion it returned (you can summarise it)
-
What was changed after reviewing it and document what you tried, what worked, what didn't, what you still don't understand
| COPY requirements.txt . | ||
| RUN pip install -r requirements.txt | ||
| COPY src/ ./src/ | ||
| RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash |
There was a problem hiding this comment.
Line 6 runs curl before curl is installed. python:3.11-slim doesn't include curl, and curl comes with line 7–8 via apt-get.
Fix the order:
- RUN apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
- Then install Azure CLI once
- RUN pip install --no-cache-dir -r requirements.txt
Always verify locally:
docker build -t test .
docker run --rm -e API_KEY=test -e GITHUB_USERNAME=noneeeed test
| CMD ["TODO"] | ||
| COPY requirements.txt . | ||
| RUN pip install -r requirements.txt | ||
| COPY src/ ./src/ |
There was a problem hiding this comment.
The image only copies src/, not data/.
Your run() calls download_inputs(DATA_DIR) which needs either:
- AZURE_STORAGE_CONNECTION_STRING
- COPY data/ ./data/ if you bundle local CSVs for offline runs
Right now docker run will fail at the download step unless you pass secrets. Document which approach you chose in AI_ASSIST.md and the PR description.
| logger.info("Script finished.") | ||
|
|
||
|
|
||
| def upload_outputs(output_dir: Path, github_username: str) -> None: |
| logger.info("Initializing Azure credentials...") | ||
| # credential = DefaultAzureCredential() | ||
| # service = BlobServiceClient(account_url=ACCOUNT_URL, credential=credential) | ||
| conn = os.environ.get("AZURE_STORAGE_CONNECTION_STRING") |
There was a problem hiding this comment.
If AZURE_STORAGE_CONNECTION_STRING is missing, raise a clear RuntimeError
No description provided.