text stringlengths 0 2.29k |
|---|
[1203.42 --> 1204.06] Check it out. |
[1204.44 --> 1205.50] We'd love to have you with us. |
[1205.50 --> 1220.54] So describe to us this big update, this big improvement that you did over the last two and a half months. |
[1220.62 --> 1224.38] I think we touched on it in Kaizen 8, but it wasn't finished. |
[1224.94 --> 1228.10] This was a Dagger version 0.3, I believe. |
[1228.10 --> 1236.98] First of all, explain what the improvement is, and then you can get into what you had to do to pull this off and where it's going from there. |
[1236.98 --> 1240.56] So, Merry Shipmas, I keep coming back to that episode 33. |
[1240.56 --> 1244.68] We introduced Dagger in the context of changelog. |
[1244.94 --> 1249.56] What that meant is that we were migrating from CircleCI to GitHub Actions. |
[1250.06 --> 1259.24] Rather than trading one YAML for another YAML, I thought, wouldn't it be nice if we had CI running locally first and remotely next? |
[1259.24 --> 1262.12] And remotely would be via a very thin interface. |
[1262.78 --> 1263.84] That interface was Dagger. |
[1264.32 --> 1265.34] You can run it locally. |
[1265.78 --> 1272.28] You run it in whatever CI you have invoking the same command, and the same things will happen because your CI now runs in containers. |
[1272.82 --> 1274.56] And I don't mean CI like the actual operations. |
[1275.30 --> 1278.34] That was November 2021. |
[1279.24 --> 1281.22] Beginning of 2022, I joined Dagger. |
[1281.90 --> 1283.26] We did a lot of improvements. |
[1283.26 --> 1295.72] And end of last year, which was just a few months ago, we released SDKs, which means that you can write your CI, CD system, your pipelines, in code. |
[1296.08 --> 1304.20] Whether it's Python, whether it's Go, whether it's Node.js, it's no more YAML, it's no more weird things, weird configuration languages that some perceive weird. |
[1304.48 --> 1306.60] It's the code that you know and love. |
[1306.60 --> 1315.38] So what that means is that now you can write proper code that declares your pipeline, that has like all the things. |
[1315.86 --> 1318.22] And I say declares because it's lots of function calls. |
[1319.00 --> 1323.04] Lots of like lazy chaining, which eventually gets translated into a DAG. |
[1323.68 --> 1324.78] Hence Dagger, the name. |
[1325.20 --> 1328.42] And then everything gets materialized behind the scenes. |
[1329.06 --> 1331.70] Some things are cached naturally, others things aren't. |
[1331.70 --> 1340.20] So what that means is that right now we are in a phase where from Dagger 0.1, which is using Q, we now have Go in our code base. |
[1340.58 --> 1342.50] And I want to know, how do you feel about that, Jared? |
[1342.60 --> 1349.44] How do you feel about having your elixir spoiled, hopefully not, by some Go code? |
[1349.90 --> 1351.04] No, I mean, I feel good about it. |
[1351.04 --> 1352.68] I feel like a renaissance man. |
[1352.88 --> 1355.10] You know, we have all these different things. |
[1355.10 --> 1357.38] We taste of the best elixirs. |
[1357.52 --> 1361.20] And we also can just pull in some Go when we want to. |
[1361.20 --> 1362.80] I mean, that's diversity. |
[1363.16 --> 1363.92] That's inclusion. |
[1364.32 --> 1365.16] I'm happy about it. |
[1365.50 --> 1366.04] That's amazing. |
[1366.32 --> 1367.50] So no more YAML. |
[1368.22 --> 1368.72] No more Q. |
[1368.72 --> 1369.70] Also happy about that. |
[1370.26 --> 1370.78] No more Q. |
[1370.86 --> 1371.56] No more makefiles. |
[1371.74 --> 1372.68] I was going to learn Q. |
[1372.76 --> 1373.82] I don't have to learn Q now. |
[1373.90 --> 1374.26] Exactly. |
[1374.52 --> 1375.84] It's all like, you have to learn Go. |
[1375.90 --> 1377.46] No more makefiles, zero makefiles. |
[1377.82 --> 1378.04] Yep. |
[1378.62 --> 1379.36] Now you got me. |
[1379.64 --> 1379.86] Yep. |
[1379.86 --> 1384.86] The top one went and the others will disappear as well from the subdirectories when we finish the migration. |
[1385.04 --> 1386.72] So there's no more top makefile. |
[1386.92 --> 1387.16] Okay. |
[1387.26 --> 1388.46] So where do I go? |
[1388.88 --> 1390.46] I look for a .go file. |
[1390.60 --> 1391.14] It's in there somewhere. |
[1391.34 --> 1392.62] To look at what's going on. |
[1392.74 --> 1396.30] So it's everything, everything Dagger related is in Mage files. |
[1396.54 --> 1396.90] Okay. |
[1396.98 --> 1401.18] And Mage is Go's version of make or rake or like a task runner thing? |
[1401.40 --> 1404.36] It's just like to invoke things and just have like different entry points. |
[1404.48 --> 1406.66] So for example, right now we have three entry points. |
[1407.38 --> 1411.38] The first entry point is the Dagger version 0.1 legacy. |
[1411.38 --> 1415.36] Where we can run the old pipeline 0.1 and 0.3. |
[1415.44 --> 1416.12] That was one PR. |
[1416.22 --> 1416.90] That was PR. |
[1417.64 --> 1419.50] So we had PR 446. |
[1419.90 --> 1426.40] We run the pipeline 0.1, Dagger 0.1 pipeline, the Q1, and 0.3 using the Go SDK. |
[1426.40 --> 1426.52] Okay. |
[1426.74 --> 1432.72] So the entry point is Dagger version 0.1 colon ship it. |
[1432.72 --> 1434.92] And that wraps the old pipeline. |
[1435.44 --> 1439.42] There's also a new, again, this is like Mage. |
[1439.54 --> 1442.34] So it exposes, I mean, you can think of those like sub commands. |
[1442.68 --> 1442.86] Okay. |
[1442.90 --> 1446.52] It all bundles up in a binary and, you know, it has like different sub commands. |
[1446.52 --> 1449.56] And if you don't provide any command, it'll show you, hey, you can run these things. |
[1450.06 --> 1452.42] That's in essence what it is. |
[1452.98 --> 1457.08] So we have image is a namespace runtime. |
[1457.48 --> 1461.92] So we can now build the runtime image using Dagger version 0.3. |
[1462.28 --> 1465.20] Not only build it, but also publish it to GHCR. |
[1465.98 --> 1467.90] And that is pull request 450. |
[1468.58 --> 1473.52] So now we are building and publishing the changelog runtime image to GitHub Actions. |
[1473.52 --> 1479.08] Sorry, using GitHub Actions or within GitHub Actions using a very thin Dagger layer. |
[1479.36 --> 1481.08] And all it does is basically does go run. |
[1481.58 --> 1489.02] Go run the main go file and the command is image runtime and off it goes to GHCR. |
[1489.72 --> 1497.44] So if you go to ghcr.io forward slash the changelog forward slash changelog dash runtime, |
[1497.70 --> 1501.66] you will see our image in all its beauty. |
[1502.22 --> 1502.90] What does that mean? |
[1502.90 --> 1504.48] It has a very nice description. |
[1504.62 --> 1510.12] We are making use of certain labels that the open container spec has. |
[1510.52 --> 1514.60] So there's like a specific label to show the description in GHCR. |
[1515.16 --> 1516.96] So GHCR, that's GitHub's deal, right? |
[1517.00 --> 1518.08] That's their registry. |
[1518.24 --> 1519.24] GitHub's container registry. |
[1519.42 --> 1519.66] That's it. |
[1519.66 --> 1519.84] Okay. |
[1519.92 --> 1520.94] I haven't used this before. |
[1521.06 --> 1523.04] So I'm a noob here. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.