You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
As a container build speedup, this adds vendoring support for GAS.
go-licenses is forcibly vendored due to being a container build time
dependency. It is not built in executables.
If you do "go mod vendor", then container builds are sped up as no
source code downloads are done during them. Depending
on network and cpu speeds the build time improvement varies, but it
can reduce significantly, in the order of 1/2, or more.
Further, pre-building of licenses is also added. If one does
"make licenses" before building the image, the licenses are simply
copied from the local folder. Together with "go mod vendor", the
image build time can be cut down to 1/3 of original, or more.
A release-image target is added to the makefile, which cleans up
first and does a proper downloading build with the licenses
recreated.
Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
&& GO111MODULE=on go run github.com/google/go-licenses@v1.2.0 save "./cmd/gas-scheduler-extender" --save_path /install_root/licenses
11
+
&& if [ -z "$LOCAL_LICENSES" ] ; then \
12
+
GO111MODULE=on go run ${GOLICENSES_PREFIX}github.com/google/go-licenses${GOLICENSES_VERSION} save "./cmd/gas-scheduler-extender" --save_path /install_root/licenses ; \
0 commit comments