Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"log"
"net/url"
"os"
)
// The URL library parse function https://golang.org/pkg/net/url/#Parse
@kkohrt
kkohrt / Story: Adding a test sqlx go script
Created April 23, 2021 22:02
Golang DB test app running alongside dockerized Keratin Server, Postgres, & Redis
The above works great on a Mac, but on an EC2 instance, not so much.
keratin_auth_1 | ~*~ Keratin AuthN v1.10.3 ~*~
keratin_auth_1 | data.NewDB: dial tcp: lookup db: device or resource busy
docker_keratin_auth_1 exited with code 0
The result was repeated with both mysql and posrgres docker containers as the target;
as well as an independent Postgres RDS instance.
In short: we can reproduce reliably in the cloud.
This seemed to point to something in the keratin container. We thought maybe the go