|
| 1 | +<!DOCTYPE html> |
| 2 | +<html><head> |
| 3 | + <meta lang="en" charset="UTF-8"/> |
| 4 | + <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 5 | + <link rel="icon" type="image/x-icon" href="/images/osc-logo.png"> |
| 6 | + <link rel="stylesheet" href="/css/main.css"/> |
| 7 | + <title>OpenSourceCorp</title> |
| 8 | +</head> |
| 9 | +<body><div class="sidenav"> |
| 10 | + <a href="/"> |
| 11 | + <img src="/images/osc-logo.png" style="width:120px;height:100px;" alt="OSC Logo"/> |
| 12 | + </a> |
| 13 | + <h3>Navigation</h3> |
| 14 | + <ul> |
| 15 | + <li><a href="/index.html">Home</a></li> |
| 16 | + <li><a href="/wiki/index.html">Wiki</a></li> |
| 17 | + <li><a href="/blog/index.html">Blog</a></li> |
| 18 | + <li><a href="https://github.com/opensourcecorp">Project SCM</a></li> |
| 19 | + </ul> |
| 20 | +</div> |
| 21 | +<div id="content" class="content"> |
| 22 | + |
| 23 | + <h2>Progress Report 2022-09-05</h2> |
| 24 | + |
| 25 | + <em>By Ryan J. Price @ 2022-09-05 01:45:00 -0500 CDT; reading time 3m</em> |
| 26 | + <hr/> |
| 27 | + |
| 28 | + <p>Wooooo boy howdy, what a STRETCH it’s been. Lots of things in life & work have |
| 29 | +come up and kept me away from working on OSC, but I wanted to throw out |
| 30 | +something quick to let folks know that neither I nor the project are dead.</p> |
| 31 | +<ul> |
| 32 | +<li> |
| 33 | +<p><a href="https://github.com/opensourcecorp/rhad"><code>rhad</code></a> has been under a lot of |
| 34 | +recent work. Some months ago, the concept of a <code>Rhadfile</code> was introduced to |
| 35 | +the codebase, which is a config-file format for <code>rhad</code> executions. The first |
| 36 | +pass at this was targeting an INI format, for its simplicity & readability. As |
| 37 | +it turns out, parsing an INI file is… interesting, to say the least. So, |
| 38 | +<code>Rhadfiles</code> are now <a href="https://toml.io">TOML</a>-formatted. TOML is a nice |
| 39 | +middle-ground format of being readable, writable, and parseable. Right now, |
| 40 | +<code>Rhadfiles</code> only support providing a version number for your code tree |
| 41 | +modules, but more options will spring up as they become apparent.</p> |
| 42 | +<p>There’s also <a href="https://github.com/opensourcecorp/rhad/pkgs/container/rhad/tree/main/scripts/run-rhad-lint.sh">a helper |
| 43 | +script</a> |
| 44 | +that runs the GitHub Super-Linter, and <code>rhad</code> following, as well as a <code>make add-local-symlinks</code> target to symlink the script onto (what I hope is) your |
| 45 | +<code>$PATH</code>. Try it out and let me know if you run into any notable bugs.</p> |
| 46 | +<p><code>rhad</code> is now version <code>v0.3.0</code>, and the <a href="https://github.com/opensourcecorp/rhad/pkgs/container/rhad">container image on |
| 47 | +GHCR</a> reflects |
| 48 | +this in its <code>:latest</code> tag (I’ll get around to getting version-tagged builds |
| 49 | +done in GHA at some point).</p> |
| 50 | +</li> |
| 51 | +<li> |
| 52 | +<p>While working on <code>rhad</code>, I started to think that abstracting out some of the |
| 53 | +reusable Go functionality might be beneficial in the long run – so now we |
| 54 | +have <a href="https://github.com/opensourcecorp/go-common"><code>a repo to house that</code></a> |
| 55 | +(currently it’s just logging functionality). This kind of felt like premature |
| 56 | +optimization, since nothing else except <code>ghostwriter</code> is using this shareable |
| 57 | +functionality, but it ended up teaching me an awful lot about how to work with |
| 58 | +dependency packages in Go that <em>you</em> control – like being able to override |
| 59 | +exported fields in child packages to disable log output for tests, set custom |
| 60 | +log prefixes without boilerplate, etc. Seeing it all come together was a cool |
| 61 | +feeling.</p> |
| 62 | +</li> |
| 63 | +</ul> |
| 64 | +<p>And now for the parts that I haven’t touched in long enough that I forget most |
| 65 | +of the finer details:</p> |
| 66 | +<ul> |
| 67 | +<li> |
| 68 | +<p>The <a href="https://github.com/opensourcecorp/osc-infra/tree/feature/bootstrapper-add-aws"><code>osc-infra</code> |
| 69 | +bootstrapper</a> |
| 70 | +is almost ready to support AWS! we’re using Terraform Provisioners like |
| 71 | +sinners. It’s neat. Also, as mentioned in the last post <code>osc-infra</code> is now |
| 72 | +under tagged releases, and the most recent version is now v0.2.0.</p> |
| 73 | +</li> |
| 74 | +<li> |
| 75 | +<p>The <code>local-vm</code> bootstrapper has been refactored to not build separate images |
| 76 | +for ever ysingle subsystem, and just run provision calls at runtime. This |
| 77 | +makes the OSC cluster <em><strong>way faster</strong></em> to bootstrap, saves on disk space since |
| 78 | +there’s no persistent storage of other images, etc. This also came along with |
| 79 | +a number of other cleanup changes while I was crawling around in the codebase, |
| 80 | +e.g. the <code>imgbuilder</code> subsystem is now named <code>baseimg</code>.</p> |
| 81 | +</li> |
| 82 | +<li> |
| 83 | +<p>Previously, when setting up a <code>redis</code> service on <code>datastore</code>, I must have |
| 84 | +stumbled onto a docs page that told readers that the ideal way to install |
| 85 | +<code>redis</code> was to compile it from source, and <em><strong>not</strong></em> use something like an APT |
| 86 | +repo. I’m not sure what I found, or if something changed, but <code>redis</code> is now |
| 87 | +installed via an APT repo, and it works fine <code>:shrug:</code></p> |
| 88 | +</li> |
| 89 | +<li> |
| 90 | +<p><code>configmgmt</code> had a Salt block that added a swapfile to cluster nodes, and that |
| 91 | +block was commented out. I don’t recall <em><strong>why</strong></em> it was commented out, but |
| 92 | +now it’s not, and is working as expected. All nodes now have a swapfile |
| 93 | +(insert Oprah “you get a car” meme here).</p> |
| 94 | +</li> |
| 95 | +</ul> |
| 96 | +<p>Like I said above, this isn’t a massive update, nor is it super clean, but |
| 97 | +posting all this to say that I’ve not disappeared, nor stopped working on OSC. |
| 98 | +Life, uh, finds a way (to get in the way).</p> |
| 99 | + |
| 100 | + |
| 101 | + <br/><br/> |
| 102 | + |
| 103 | + <a href="/blog/index.xml"><img alt="rss-feed" src="/images/rss.png"/></a> <em><-- Subscribe for updates!</em> |
| 104 | + |
| 105 | + </div></body> |
| 106 | +</html> |
0 commit comments