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

Speed up build time when only plugins requirements installation #574

Closed
wants to merge 2 commits into from
Closed

Speed up build time when only plugins requirements installation #574

wants to merge 2 commits into from

Conversation

sambarza
Copy link
Member

Description

  • Removed mkdir of folders
    The WORKDIR command already create the folder if missing

  • Speed up build time when only plugins requirements installation

The dev define a new package in the requirements file.
The dev run the build with docker compose build.
The build recreate all the layers.
If the layer is the same, docker keep it, when a layer change, docker create the layer and all the layer after it.

Moved the apt-get commands before the others steps.
Moved the commands to copy of plugins and installation of plugins dependencies as last commands.

Related to issue, not related to issue

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

The WORKDIR command already create the folder if missing
The dev define a new package in the requirements file.
The dev run the build with `docker build`.
The build recreate all the layers.

If the layer is the same, docker keep it, when a layer changes, docker create the layer and all the layer after it.
Moved the apt-get commands before the others steps.
Moved the commands to copy of plugin and installation of plugins dependencies as last commands.

### FINISH ###
CMD python3 -m cat.main
Copy link
Member

Choose a reason for hiding this comment

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

We need this CMD in case you launch the image solo (out of docker compose)

Copy link
Member

Choose a reason for hiding this comment

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

Please the PR branched from develop and towards develop
(Because there are commits on main that are not on develop and vice versa)

@sambarza sambarza closed this Nov 18, 2023
@sambarza sambarza deleted the review-dockerfile branch November 18, 2023 22:12
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