Skip to content

Refactor containerize-dependencies Mojo to use Apache Velocity for creating dockerfiles #207

Closed
@chang-annie

Description

@chang-annie

Context

The containerize-dependencies mojo needs to be abstracted somewhat to support UV-based projects in addition to Poetry. Additionally, the programmatic nature of our dockerfile generation process is getting messy and would probably be more suitable to a templating solution such as Velocity.

Definition of Done

  • ❌ Expand containerize-dependencies mojo to allow UV support (follow-on)
  • ✅ Refactor the containerize-dependencies Mojo to use Apache Velocity Engine

Steps to Test

Velocity refactor

  1. run mvnd clean install -Pbootstrap and confirm success
  2. run mvnd clean install and confirm success
  3. run mvnd clean install -pl :habushu-poetry-containerize -Dhabushu.dockerPoetryVersion=TEST
  4. open the file: examples/habushu-poetry-containerize/src/resources/Dockerfile
  5. Confirm line 5 points to poetry version "poetry==TEST"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions