text
stringlengths
0
2.29k
[1523.08 --> 1524.02] I'm used to Docker Hub.
[1524.24 --> 1525.80] So this is like GitHub's version.
[1526.14 --> 1526.52] Exactly.
[1526.72 --> 1527.90] Oh, I'm looking at this changelog runtime.
[1528.74 --> 1530.18] It has emoji next to it.
[1530.18 --> 1531.38] How beautiful is that?
[1531.38 --> 1534.68] You already got some emoji in there.
[1534.84 --> 1536.74] So you're already talking my language.
[1537.28 --> 1539.56] Elixir version 1.14.2.
[1539.68 --> 1540.54] So you see the description.
[1541.04 --> 1543.76] I mean, you can see the version that we use in the actual tag.
[1544.18 --> 1546.40] And that's what we're using in production right now.
[1546.74 --> 1548.16] That went out this weekend.
[1548.54 --> 1548.92] Okay.
[1548.92 --> 1550.64] So we're using that runtime image.
[1550.98 --> 1551.28] Okay.
[1551.54 --> 1555.40] And this was built via Dagger inside GitHub Actions?
[1555.58 --> 1555.80] Am I...
[1555.80 --> 1556.20] That's right.
[1556.58 --> 1556.80] Yeah.
[1556.94 --> 1557.24] Okay.
[1557.42 --> 1558.80] And you can also run it locally if you want.
[1558.92 --> 1559.60] Inside...
[1559.60 --> 1562.22] When you run it locally, are you running it inside Dagger?
[1562.46 --> 1562.92] How do you...
[1562.92 --> 1563.90] What's the terminology here?
[1564.00 --> 1564.20] Okay.
[1564.28 --> 1565.34] So you're running it.
[1565.38 --> 1567.72] So it runs Go on the outside.
[1567.72 --> 1572.38] It provisions a Dagger engine inside Docker.
[1572.94 --> 1576.26] Because if you have Docker, I mean, it needs to provision like the brains, if you wish,
[1576.30 --> 1577.24] of where things will run.
[1577.80 --> 1580.74] So by default, if you have Docker, it knows how to provision itself.
[1581.14 --> 1585.50] When the Dagger engine spins up, all the operations run inside Dagger engine.
[1585.86 --> 1590.20] The really cool thing is, if anything has been cached, it won't run it again.
[1590.64 --> 1591.96] So imagine our image, right?
[1591.98 --> 1593.18] When we pull down our image.
[1593.26 --> 1595.64] So when we build this runtime image, we have...
[1595.64 --> 1599.28] Obviously, we have to pull down the base one, which is based on the hex.pm image.
[1599.40 --> 1600.34] And that's from Docker Hub.
[1600.74 --> 1602.68] Then it needs to install like a bunch of dependencies.
[1603.06 --> 1605.02] And by the way, all that stuff...
[1605.02 --> 1605.84] I mean, if you look at...
[1605.84 --> 1605.96] Okay.
[1605.98 --> 1606.80] I have to show you the code.
[1606.88 --> 1607.78] This is too cool, Jared.
[1608.50 --> 1609.18] Check this out.
[1609.24 --> 1610.94] So if you go to the pull request for 50.
[1611.48 --> 1611.86] Okay.
[1612.38 --> 1617.42] And if you look at Magefiles, image, image.go.
[1618.26 --> 1620.14] Look at line 50.
[1620.74 --> 1621.88] To 61.
[1622.80 --> 1623.96] Build.elixir.
[1624.10 --> 1625.18] With add packages.
[1625.44 --> 1626.10] With get.
[1626.26 --> 1627.02] With image magic.
[1627.12 --> 1632.00] So this is like a chain of function calls that you've named nicely.
[1632.36 --> 1632.92] That's it.
[1633.38 --> 1636.52] And you can mix and match them in whichever way you want.
[1637.30 --> 1644.32] So when we, for example, we convert the rest of our pipeline to Dagger 0.3, we'll do build.
[1644.60 --> 1648.96] We'll take Elixir with add packages and whatever else we want.
[1648.96 --> 1654.96] And when we want to publish the image, we can chain, again, the function calls however we want.
[1655.02 --> 1659.80] For example, we do not want with Node.js when we publish our image.
[1659.80 --> 1665.34] But we do want with Node.js when we build or compile our assets.
[1666.08 --> 1674.96] So this way we can chain all the functions, get all the bits from the various containers, various layers, assemble it, and make sure that all dependencies will be the same.
[1674.96 --> 1678.86] Because with Node.js knows exactly which Node.js version we do.
[1678.90 --> 1680.26] And it doesn't matter where you call it from.
[1680.92 --> 1683.90] And because of the operations they're cached, they won't rerun.
[1684.38 --> 1686.30] Some of these can take a really long time, by the way.
[1686.86 --> 1688.40] Anyways, I'm super excited about this.
[1688.40 --> 1700.56] So this is, and by the way, Noah, if you're listening to this, I'm very curious to know how much easier it is to bump our dependencies with the new approach.
[1700.68 --> 1702.12] I was just going to ask that.
[1702.38 --> 1708.58] Because I'm looking at line 16, it says Elixir version equals, and then there's a string, 1.14.2.
[1708.70 --> 1709.06] That's it.
[1709.16 --> 1710.80] Can I just change that string?
[1711.24 --> 1711.72] That's it.
[1712.02 --> 1712.62] And that's it?
[1712.78 --> 1713.20] That's it.
[1713.30 --> 1717.20] Change the string, commit and push, and the CI will take care of the rest.
[1717.20 --> 1718.40] Woo-wee!
[1718.58 --> 1719.60] Now we're talking.
[1719.94 --> 1720.58] Oh, yeah, baby.
[1720.68 --> 1722.24] I've asked you for this for years.
[1722.62 --> 1726.84] Can I go to one place in the code and just change the version, and it'll be done?
[1727.52 --> 1727.92] That's it.
[1727.98 --> 1730.44] And there's more and more stuff that we can add on top of that.
[1730.48 --> 1732.92] For example, we can change the local files.
[1733.62 --> 1740.60] You know, we still have in Contribute MD, if you go to that, by the way, that was updated as well to tell you how you change things.
[1740.98 --> 1745.92] So that was updated to reference the new files.
[1745.92 --> 1751.36] Those steps, we can start removing them, because we can automate more and more of that stuff.
[1751.82 --> 1757.24] So we can, for example, go and update the Elixir version in the Readme, in the Contribute MD, wherever we have it.
[1757.46 --> 1759.06] It's all code at the end of the day.
[1759.40 --> 1761.04] And it's not scripting.
[1761.18 --> 1762.50] Meaning it's only in the Readme?
[1762.90 --> 1764.72] Like you could have it in the Readme only?
[1764.84 --> 1766.88] Meaning that it will only be in the Image Go.
[1767.30 --> 1767.78] That's it.
[1768.00 --> 1772.50] When you bump it into Image Go and the pipeline runs, it will update all the other places.
[1772.84 --> 1774.30] Oh, it'll update the Readme for you.
[1774.30 --> 1774.80] Yeah, exactly.