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

Enabling Dynamic Addition of Images for Dockerization #32

Merged
merged 5 commits into from
Jul 27, 2023
Merged

Enabling Dynamic Addition of Images for Dockerization #32

merged 5 commits into from
Jul 27, 2023

Conversation

maazmaqsood
Copy link
Collaborator

Description:
This pull request introduces a significant enhancement to our existing dockerization process. Previously, PIRlib was limited to dockerizing only one image at a time, specifically miniconda, which is essential for creating the final dockerized image. With this update, we have empowered users to dynamically add another image of their choice, which will be seamlessly integrated into the final dockerized image.

Changes Made:

  1. Dynamic Image Inclusion: We have modified the dockerization script to allow users to specify an additional image they want to include in the final dockerized build. This enables more flexibility and customization for different use cases and applications.

  2. Example pipelines change: We have added a new example pipeline, ETL-pipeline and updated multi-backends example. to demonstrate and test the inclusion of dynamic image to the final image.

Why is this Change Important?
The ability to add another image dynamically in the dockerization process significantly enhances the versatility and usefulness of PIRlib. It allows users to tailor their dockerized environments to specific requirements, ensuring that diverse applications and dependencies can be effectively encapsulated within the final image.

Additional Notes:
I have thoroughly tested the changes, both with the default miniconda image and various supplementary images, ensuring a seamless integration process.

I kindly request a comprehensive review of this pull request to ensure the smooth incorporation of this new feature into PIRlib. Your feedback and suggestions are highly valued, and we are committed to addressing any concerns promptly.

@Nilabhra
Copy link
Collaborator

@maazmaqsood Please format the code using black. For black settings, check the main.yaml here

Copy link
Collaborator

@Nilabhra Nilabhra left a comment

Choose a reason for hiding this comment

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

@maazmaqsood Added my initial review :). Things are looking good, just needs a few small changes.

return outdir

# @task
# def transform(data:dict) -> pd.DataFrame:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete commented function if not needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were already removed in the later pushes.



# @task
# def load(df:pd.DataFrame)-> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete commented function if not needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were already removed in the later pushes.

pirlib/cli/dockerize.py Outdated Show resolved Hide resolved
examples/etl_pipeline/etl.py Show resolved Hide resolved
pirlib/cli/dockerize.py Outdated Show resolved Hide resolved
@maazmaqsood
Copy link
Collaborator Author

@maazmaqsood Added my initial review :). Things are looking good, just needs a few small changes.

Thank you @Nilabhra, code has been updated and pushed. resolving the mentioned issues.

@Nilabhra Nilabhra merged commit f86e340 into petuum:master Jul 27, 2023
1 check passed
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.

2 participants