News for hackers. Stuff that matters.
Re:Why does a new Rails app need 106 MB of JavaScript? by rileytg on Wednesday July 01, 2020 @04:46PM (#23706440)
I don't upload xcode.app to apple every time i submit an iOS app. I do npm install on every build on heroku.
Re:Why does a new Rails app need 106 MB of JavaScript? by eropple on Wednesday July 01, 2020 @04:49PM (#23706488)
Then maybe don't use Heroku and use something that can work with a finished build?

It's not complicated to set up a build container locally and ship only your final result to a service that can run it.

Re:Why does a new Rails app need 106 MB of JavaScript? by rileytg on Wednesday July 01, 2020 @05:10PM (#23706756)
Heroku provides value in other ways for us. We run on a number of other solutions, most involve shipping a ~100mb image. This can be dramatically reduced in size with a slimmer base image, which we plan on doing eventually.

In this case, heroku handles a lot of things we otherwise need to do ourselves: - DB + backups + DR - Network security - Network routing - SSL certs - Easy scaling of resources - Access control to operations (redeploy, restart etc) - Audits of operations etc

We can do all these things, and under various compliance frameworks, outside of heroku; its just exhausting and expensive. This project we want to focus on the product so we opt for heroku as it was a few lines of bash we were all familiar with to get up and running nearly prod ready.

Re:Why does a new Rails app need 106 MB of JavaScript? by jspash on Wednesday July 01, 2020 @04:55PM (#23706560)
Just build locally and vendor the asset artefacts. That's how we did it in the "good old days". No containers in containers needed.
Re:Why does a new Rails app need 106 MB of JavaScript? by eropple on Wednesday July 01, 2020 @04:58PM (#23706590)
To be clear, you don't do "containers in containers", you build a container and you copy your assets from the other one. You then have a shippable artifact with all your dependencies, including your runtime, vendored into it.

I'm not a k8s guy, but it's a lot nicer than a tarball.