Personally, I love having a language as easy to write and read as python, without the slow compilation of C++, yet matching some of its speed.īringing those three ingredients together (Go, Jenkins and Homebrew), with Jenkins as the centrepiece, one of the possible results would be a golang based Jenkins API client! Or maybe some sort of reconstruct of Jenkins using Go and Homebrew, but let’s not dive into that rabbit-hole. Nowadays it is used by many open-source projects. Go is a programming language originally created by Google in order to solve some of the problems a company like Google typically faces: tens of thousands of engineers, lots of software and systems, millions of lines of code (especially behind their network servers) being developed by hundreds of programmers, and finally lots of hardware on which all this software was launched. Neither does it really stack up to its cousin for MacOS, which is what I will be using: Homebrew.įinally, I have started tinkering with Go recently. While Chocolatey offers some of these features on Windows, it does not work quite as smooth as apt. You are done using it? sudo apt-get remove. You need an update? sudo apt-get upgrade. Apt-get install, watch the logs fly through the terminal and start using your downloaded application. , there is really no going back to installing through manual downloads and installation wizards. Once you first make use of sudo apt-get install. In the past I have made heavily use of linux machines, both professionally and personally, so I knew about apt for package management. Next to that, I recently made the switch from Windows to MacOS. I am going to need a bit more hands-on experience as well. Although reading the documentation before starting is a sometimes forgotten best practice, I also want to be able to hit the ground running from day 1. In order to catch up, I found myself back zifting through articles and documentation regarding old and newer versions of Jenkins. Unsurprisingly, one of those tools is Jenkins. Posted in Code.Since I am about to start at a new client as DevOps engineer, I have been busy digging through some of the tools they use. Liked what you read? I am available for hire. Then you can just use brew install commands and they'll work just as you Homebrew-core checkout: ln -s ~/code/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core usr/local/Homebrew/Library/Taps/homebrew to wherever you keep your assert_match "hostsfile version 1.2", shell_output ( " # / hostsfile version 2 >& 1 ", 2)Īnd that's it! You can test your new package by creating a symlink from The " 2 " at the end means " the # exit code should be 2". # " 2 >& 1 " redirects standard error to stdout. System " go ", " build ", " - o ", bin/" hostsfile ", ". # Install the compiled binary into Homebrew's `bin` - a pre-existing # Copy all files from their current location (GOPATH root) class Hostsfile :build def install ENV = buildpath bin_path = buildpath /"src/ github. # Classname should match the name of the installed package. If you vendor dependencies, and check in the vendor folder to Github, (This helps check that a binary wasn't tampered with, andĪvoids compatibility problems with e.g. However, the Homebrew core team requires that packages are buildable from One way toĭo this is to compile binaries, upload them to Github releases, and install from In my experience people running Linux in a Mac software shop have moreĮxperience building dependencies on their own).Īnyway, I wanted to describe how to install Go binaries via Homebrew. (Obviously this won't work for Linux folks on your team, however You can use the existing formulas as a jumping off point, and modifyĪs you see fit. Then your team can installĪnd update packages as easily as: brew tap mycompany/packagesīrew install mycompany/packages/postgresql Package (say, Postgres 9.5.3 with readline support), I highly recommend creatingĪ Homebrew repository and publishing recipes to it. If you depend on a very specific version of a software It's easier than you think to make a software package installable via
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |