Skip to content

Docker implementation [skip windows]#1219

Draft
Jrice1317 wants to merge 26 commits intoconda:mainfrom
Jrice1317:docker-implementation
Draft

Docker implementation [skip windows]#1219
Jrice1317 wants to merge 26 commits intoconda:mainfrom
Jrice1317:docker-implementation

Conversation

@Jrice1317
Copy link
Copy Markdown
Contributor

@Jrice1317 Jrice1317 commented Apr 22, 2026

Description

This PR adds Docker output support to constructor, generating a ready-to-use Dockerfile and optionally building the resulting image via installer_type: docker and docker_build: true in the construct.yaml.

Changes

New:

  • constructor/docker_build.py: Handles Docker output by rendering template and optionally building image
  • constructor/dockerfile_template.tmpl: Template used to generate Dockerfile
  • examples/docker_build/construct.yaml: Example construct.yaml used for testing

Updated:

  • constructor/_schema.py: Adds docker to installer_type and adds docker_base_image, docker_tag, docker_labels
  • constructor/main.py: Adds docker to installer types
  • tests/test_examples.py: Adds test_docker_build to cover Dockerfile generation, image build and smoke test

Notes:

  • Verified RuntimeError is raised when base_image is not provided
RuntimeError: Base image for Dockerfile not specified. Please set 'docker_base_image' in construct.yaml, e.g.:
 docker_base_image: debian:13.4-slim@sha256:4ffb3a1511099754cddc70eb1b12e50ffdb67619aa0ab6c13fcd800a78ef7c7a

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@Jrice1317 Jrice1317 requested a review from a team as a code owner April 22, 2026 19:32
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Apr 22, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Apr 22, 2026
@Jrice1317 Jrice1317 marked this pull request as draft April 22, 2026 19:45
@Jrice1317 Jrice1317 changed the title Docker implementation Docker implementation [skip windows] May 6, 2026
@Jrice1317 Jrice1317 force-pushed the docker-implementation branch from 9fa7db8 to 9f20cbe Compare May 6, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

2 participants