Below you will find pages that utilize the taxonomy term “Docker”
GitHub Actions workflow
Some important changes to GitHub Actions workflows:
golangci-lint and its builder (golangci-lint-action v8.0.0)
The Go extension for Visual Studio Code supports golangci-lint albeit through the “Go” debug console. An advantage of accessing it in Visual Studio Code is that recommendations hyperlink to the code.
I’ve added golangci-lint to most of my repos’ GitHub Actions workflows. Belatedly, I realized it should run before not in parallel with the e.g. container builder.
Golang, Containers and private repos
A smörgåsbord of guidance involving Golang modules, private repos and containers. Everything herein is documented elsewhere (I’ll provide links) but I wanted to consolidate the information primarily for my own benefit.
GOPRIVATE
Using private modules adds complexity because builders need to be able to access private modules. Customarily, as you’re hacking away, you’ll likely not encounter issues but, when you write a Dockerfile or develop some CI, you’ll encounter something of the form:
Don't ignore the (hidden) ignore files
Don’t forget to add appropriate ignore files…
.dockerignorewhen using Docker.gitignorewhen using git.gcloudignorewhen using Google Cloud Platform
This week, I’ve been bitten twice in not using these.
They’re hidden files and so they’re more easy to forget unfortunately.
.dockerignore
docker build ...
Without .dockerignore
Sending build context to Docker daemon 229.9MB
Because, even though Rust’s cargo creates a useful .gitignore, it doesn’t create .dockerignore and, as you as you create ./target, you’re going to take up (likely uncessary) build context space:
ZeroConf
sudo systemctl status avahi-daemon
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-11-20 09:26:13 PST; 14min ago
TriggeredBy: ● avahi-daemon.socket
Main PID: 1039 (avahi-daemon)
Status: "avahi-daemon 0.7 starting up."
Tasks: 2 (limit: 38333)
Memory: 2.3M
CGroup: /system.slice/avahi-daemon.service
├─1039 avahi-daemon: running [hades-canyon.local]
└─1098 avahi-daemon: chroot helper
avahi-browse --all
+ wlp6s0 IPv4 googlerpc-1 _googlerpc._tcp local
+ wlp6s0 IPv4 googlerpc _googlerpc._tcp local
+ enp5s0 IPv4 googlerpc-1 _googlerpc._tcp local
+ enp5s0 IPv4 googlerpc _googlerpc._tcp local
+ wlp6s0 IPv4 Google-Home-Mini-... _googlecast._tcp local
+ wlp6s0 IPv4 Google-Home-Mini-... _googlecast._tcp local
+ enp5s0 IPv4 Google-Home-Mini-... _googlecast._tcp local
+ wlp6s0 IPv4 [GUID] _googlezone._tcp local
+ enp5s0 IPv4 [GUID] _googlezone._tcp local
+ enp5s0 IPv4 [GUID] _googlezone._tcp local