kontena / pharos-cluster

Pharos - The Kubernetes Distribution
https://k8spharos.dev/
Apache License 2.0
311 stars 43 forks source link

The pharos-cluster binary includes unnecessary files #555

Closed kke closed 6 years ago

kke commented 6 years ago

The rubyc README states:

Remember that rubyc includes all the files from the current directory in the built executable

This means there will be:

In addition:

rubyc seems to install all the development dependencies (rspec, bundler, rake, fakefs, rubocop) into the virtual ruby environment. Removing those from the .gemspec before compilation yields a binary that is both 2.5% larger and takes almost double the time to spin up for an unknown reason. 🤔

kke commented 6 years ago

Only saves about 50kb from the binary.