Skip to content

Conversation

bmanjwani
Copy link

Issue describing the changes in this PR

resolves #issue_for_this_pr

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • I have added all required tests (Unit tests, E2E tests)

Additional information

Additional PR information

@bmanjwani bmanjwani marked this pull request as ready for review September 11, 2025 02:00
@bmanjwani bmanjwani requested review from a team as code owners September 11, 2025 02:00
@bmanjwani bmanjwani changed the title [DRAFT] adding python313 dockerfile locally adding python313 dockerfile locally Sep 11, 2025
{
switch (imageName)
{
case "local/python3.13-buildenv":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use the const here: LinuxPython313ImageAmd64

// creating temp folder for Dockerfile
string imageTag = dockerImage.Replace("local/", string.Empty).Replace(":", "-");
string tempDir = Path.Combine(Path.GetTempPath(), $"{imageTag}-docker");
Directory.CreateDirectory(tempDir);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use CreateDirectory from FileSystemHelpers

return imageName.StartsWith("local/", StringComparison.OrdinalIgnoreCase);
}

private static Task<string> GetDockerfileForImage(string imageName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use GetDockerInitFileContent instead? And update

                    case 13:
                        return StaticResources.DockerfilePython313;

to

                    case 13:
                        return StaticResources.DockerfilePython313buildenv;

@liliankasem liliankasem mentioned this pull request Oct 6, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants