Skip to content
home@dennisPersonal Website of Dennis Plöger
  • Home
  • Blog
  • Artist
  • Impressum
  • Datenschutzerklärung

CloudControl 2.0.0-alpha1 (and how I learned Go)

13. September 2020 0 comments Article Allgemein

As you might know, CloudControl is DoDevOps‘ cloud engineer toolbox, which supplies cloud engineers working in different clouds with common tools in an easy-to-deploy container environment suitable for multiple projects.

I always wasn’t quite happy with CloudControl’s initialization process. It was very cluttered, didn’t point out the relevant information and… well, ugly.

At first, I came up with an idea to use Dialog scripts to display some appealing user interface during the process, but that didn’t work out mostly because of the Azure flavour’s sign up process.

Then I thought, why not give a web client a go? I’m already used to Vue, so it wouldn’t be that hard. One thing was a problem, though: I’d need a web/api-server that hooks up into the running initialization process. I didn’t want to move away from shell scripts for the initialization of the flavour and features, because 1) they work quite well and 2) they’re not really an effort to write for other people who want to add features.

Well. Two process running alongside tapping into each other plus a need for a single binary with a low footprint? That really cried out for Go.

As I’ve commented in another post, I tried starting with Go several times and never succeeded. But those requirements really were a perfect fit. So I tried again.

I downloaded the most current version of Go, checked out the tutorials again and got going.

Then, I needed the first external dependency and I remembered, that Go really was a PITA with this the last time I checked.

But, no. Nevermore. The Go folks finally seemed to agree on a good way to document and implement external dependencies with a go.mod file and dumped the nasty GOPATH. And everything was nicely supported by my IDE-of-choice IntelliJ Idea. Just add the required import, let Idea sync the dependencies and you’re good to go. Yay!

Party!

The rest was classic trial-and-error until I came up with a nice looking Vue frontend (thanks to vuetify) and a stable API server (using gin) that delivers information from then goroutine, which handles the initialization.

With Docker multi-stage-builds it was also possible to build the vue client, the go server and the CloudControl flavour without any dependencies on the client. Oh, and I switched to GitHub Actions (because Docker automated builds didn’t support build scripts)

So, that was my journey and I’m pretty happy with the end result. If you haven’t already, please check it out and let me know what you think.

Originally published to dev.to

Schreibe einen Kommentar Antwort abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden.

Neueste Beiträge

  • Making Puppet host reports in Foreman available in Grafana
  • Introducing Handler Inspector
  • Github Action for the Godot Asset library
  • Announcing EgoVenture
  • The third installment of my learning project

Schlagwörter

administration apache blog configuration configuration management development dhcp disclaimer django documentation dokuwiki extension footer hammerspoon java javascript jslint keyboard lbows linux log migration milter news php plugin printer python rest rhino server shortcut skd soap social ssh survey twitter ubuntu vmware website window management zimbra zimlet zimlets

Meta

  • Anmelden
  • Eintrags-Feed
  • Kommentar-Feed
  • WordPress.org

Neueste Beiträge

  • Making Puppet host reports in Foreman available in Grafana
  • Introducing Handler Inspector
  • Github Action for the Godot Asset library
  • Announcing EgoVenture
  • The third installment of my learning project

Schlagwörter

administration apache blog configuration configuration management development dhcp disclaimer django documentation dokuwiki extension footer hammerspoon java javascript jslint keyboard lbows linux log migration milter news php plugin printer python rest rhino server shortcut skd soap social ssh survey twitter ubuntu vmware website window management zimbra zimlet zimlets

Meta

  • Anmelden
  • Eintrags-Feed
  • Kommentar-Feed
  • WordPress.org

Copyright (c) Dennis Plöger | Theme by ThemeinProgress | Proudly powered by WordPress

Zum Ändern Ihrer Datenschutzeinstellung, z.B. Erteilung oder Widerruf von Einwilligungen, klicken Sie hier: Einstellungen