-
Notifications
You must be signed in to change notification settings - Fork 11
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
Dockerfile Optimization #37
Conversation
…on of some output to 7 decimal places.
Optimize Dockerfiles for Smaller and Faster Deployments
DockerHub Image Documentation
Update do_kafka_test to set DOCKER_HOST_IP
Update KAFKA_CONTAINER_NAME to resolve dynamically
…ot-changes Sync CDOT develop branch with latest USDOT changes
Release Notes for v1.3.0
Dockerfile-nsv
Outdated
WORKDIR /cvdi-stream | ||
|
||
# add runtime dependencies | ||
RUN apk add --upgrade --no-cache \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to COPY the libs from build image? The same comments for other Dockerfiles that install the same dependencies from build stage image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dockerfiles have now been modified to include 3 image stages:
- runtime-deps: Image with runtime dependencies
- builder: Inherit from runtime-deps and build
- final: Inherit from runtime-deps and copy built files
This removes the need to install the runtime dependencies twice.
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the docker setup action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been removed.
- name: Build | ||
uses: docker/build-push-action@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove docker build/push action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been removed.
Removed docker CI actions & reduced installation duplication in dockerfiles
This PR is ready for re-review. |
Changes
Some changes have been made to the Dockerfiles with the aim to enhance performance and efficiency:
Additionally, some output from a cv-lib method has been decreased in precision to fix a failing unit test in alpine.
Testing
The changes have been thoroughly tested with the following results:
These updates are expected to contribute to a more efficient and streamlined development and deployment process.