Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Flow CLI Command to Generate Docker Image #8

Open
seekersoftec opened this issue Aug 3, 2024 · 0 comments
Open

Implement Flow CLI Command to Generate Docker Image #8

seekersoftec opened this issue Aug 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@seekersoftec
Copy link
Contributor

seekersoftec commented Aug 3, 2024

Task:

  1. Create a Utility Function: Develop a separate utility function responsible for generating a Docker image template. This function should handle the following aspects:
    • Base Image Selection: Allow choosing between the latest Nautilus Trader image (ghcr.io/nautechsystems/nautilus_trader:latest) and the latest MetaTrader 5 Terminal image (ghcr.io/fortesenselabs/metatrader5-terminal:latest).
  2. Implement CLI Command: Add a new CLI command (flowcli generate image metatrader5_terminal OR flowcli generate image nautilus_trader ) that utilizes the utility function to generate the Docker image template.
  3. Template Options: The generated template should be a Dockerfile customized for the chosen base image.

Additional Considerations:

  • Error Handling: Implement robust error handling in the utility function to gracefully handle invalid base image selection or potential issues during template generation.
  • Documentation: Update project documentation to explain the flowcli generate metatrader command, its usage, options, and how to build the generated Docker image.

Note:

This issue proposes a separate utility function to encapsulate the image generation logic and maintain cleaner separation of concerns in the main server/daemon program. The final implementation might choose to integrate this functionality directly into the CLI command if deemed more suitable.

@seekersoftec seekersoftec added enhancement New feature or request good first issue Good for newcomers labels Aug 3, 2024
@seekersoftec seekersoftec changed the title Command to generate MetaTrader docker image Add Command to generate MetaTrader docker image Aug 23, 2024
@seekersoftec seekersoftec changed the title Add Command to generate MetaTrader docker image Add Command to generate MetaTrader Docker Image Aug 23, 2024
@seekersoftec seekersoftec changed the title Add Command to generate MetaTrader Docker Image Implement Flow CLI Command to Generate MetaTrader Docker Image Aug 24, 2024
@seekersoftec seekersoftec changed the title Implement Flow CLI Command to Generate MetaTrader Docker Image Implement Flow CLI Command to Generate Docker Image Aug 30, 2024
@Creative-genius001 Creative-genius001 self-assigned this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants