friism / dotnet-buildpack-old

ASP.NET buildpack. Deploys app on of Mono with XSP and nginx.
MIT License
102 stars 40 forks source link

Slim down Mono runtime to reduce slug size and build time #2

Closed mrdavidlaing closed 10 years ago

mrdavidlaing commented 10 years ago

@friism - would you be interested in collaborating on building a "slimmed down PAAS version" of mono with me?

I'm focussing on running Mono apps on Cloud Foundry, and currently build mono using https://github.com/cloudfoundry-community/builder-mono

Currently, I can't get it much below 60MB, which still feels too big.

One of the tricks I'm thinking of trying is to not compile the < .net 4 stuff, and only include the .net 4.5+ stuff.

@mrdavidlaing (author of https://github.com/cloudfoundry-community/.net-buildpack)

friism commented 10 years ago

@mrdavidlaing 60MB is still an achievement, I think mine are around 100MB. I looked at your build-script, what made a dent in the size?

mrdavidlaing commented 10 years ago

The biggest "space savers" were:

friism commented 10 years ago

Now running with slimmed down Mono, closing.

mrdavidlaing commented 10 years ago

@friism - did you manage to get 3.2.6 compiling?

mrdavidlaing commented 10 years ago

Aha! - http://friism.com/building-heroku-buildpack-binaries-with-docker

Sweet. I shall be using https://github.com/friism/mono-builder and https://github.com/friism/xsp-builder going forward!

friism commented 10 years ago

@mrdavidlaing I found 3.2.6 un-buildable, but 3.2.8 is fine.

You prolly need to tweak the bucket name and maybe the /app stuff, but other than that, you'd be fine.