V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
Apache License 2.0
123
stars
69
forks
source link
Remove duplicate debian package installs in install_dependencies.sh and deployment_dependencies.sh #527
We are working to reduce image size for our deployment image by removing source code and unused functionality and using a staged build to only include the binaries and libraries need to execute the binaries. Currently we have two build stages, the first builds the source code and uses the install_dependencies.sh script to install dependencies for the build. The second is a runtime environment to run the executable and uses the deployment_dependecies.sh to install dependencies for the runtime environment. Since we are already copying over all of the installed library dependencies from the first stage we likely do not need to reinstall these in the second stage.
Reasoning for new functionality
Reduce deployment image size to making pulling and pushing faster and reduce resource use of application overall
Summary
We are working to reduce image size for our deployment image by removing source code and unused functionality and using a staged build to only include the binaries and libraries need to execute the binaries. Currently we have two build stages, the first builds the source code and uses the install_dependencies.sh script to install dependencies for the build. The second is a runtime environment to run the executable and uses the deployment_dependecies.sh to install dependencies for the runtime environment. Since we are already copying over all of the installed library dependencies from the first stage we likely do not need to reinstall these in the second stage.
Reasoning for new functionality
Reduce deployment image size to making pulling and pushing faster and reduce resource use of application overall