Skip to content

Commit

Permalink
BOSH release: 2.4.1: fewer panics
Browse files Browse the repository at this point in the history
customized records w/ non-existent TXTs don't panic().
  • Loading branch information
cunnie committed Jan 20, 2022
1 parent 64d5832 commit 14ef9a0
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/make_all
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/../src/sslip.io-dns-server
ldflags="-X xip/xip.VersionSemantic=2.4.0 \
ldflags="-X xip/xip.VersionSemantic=2.4.1 \
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
export GOOS GOARCH
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
builds:
01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9:
version: 01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9
blobstore_id: fa32b6c6-b646-4399-5f96-9ae00aec6c65
sha1: sha256:345b69c95b2c4f2b8533935ac11107d1598b24231179ec9c5b1aff080c8b6960
037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6:
version: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
blobstore_id: d07828f0-f4ff-4966-7a52-fa25d3eba096
Expand Down
4 changes: 2 additions & 2 deletions bosh-release/packages/sslip.io-dns-server/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ source /var/vcap/packages/golang-1-linux/bosh/compile.env
mkdir src ${BOSH_INSTALL_TARGET}/bin
mv sslip.io-dns-server/{go.*,main.go,xip} src/
cd src/
ldflags="-X xip/xip.VersionSemantic=2.4.0 \
ldflags="-X xip/xip.VersionSemantic=2.4.1 \
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
-X xip/xip.VersionGitHash=916e89c"
-X xip/xip.VersionGitHash=64d5832"
go build \
-ldflags="$ldflags" \
-o ${BOSH_INSTALL_TARGET}/bin/sslip.io-dns-server
2 changes: 2 additions & 0 deletions bosh-release/releases/sslip.io/index.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
builds:
1c4de423-584b-42b9-59ab-93a123c96307:
version: 1.2.0
43640b61-afe3-4bc0-79ed-4e279f286041:
version: 2.4.1
516ea48d-0717-494d-4082-9d8f0ab937df:
version: 1.3.1
520c044f-c0d0-4fd8-72a4-ed482efa2a96:
Expand Down
23 changes: 23 additions & 0 deletions bosh-release/releases/sslip.io/sslip.io-2.4.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: sslip.io
version: 2.4.1
commit_hash: f86f6f0
uncommitted_changes: false
jobs:
- name: sslip.io-dns-server
version: 308acb7c186a042bc2ca4c28b83c9fe7589a64c48ab6a11869c442bcaea8fdf9
fingerprint: 308acb7c186a042bc2ca4c28b83c9fe7589a64c48ab6a11869c442bcaea8fdf9
sha1: sha256:6ca6f2c11816a82ecb3cf9300ea59369977cbaa7c39eddca35628a7c6b9b5b45
packages:
- sslip.io-dns-server
packages:
- name: golang-1-linux
version: 1ab563903c1f130ca908d3abdbf66650a395d3b77134474bff837aeed3649c06
fingerprint: 1ab563903c1f130ca908d3abdbf66650a395d3b77134474bff837aeed3649c06
sha1: sha256:1f4f73a903b8f59b46d9a8ff813961615126b843eafa991c7dc950ae9a2a0bf1
dependencies: []
- name: sslip.io-dns-server
version: 01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9
fingerprint: 01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9
sha1: sha256:345b69c95b2c4f2b8533935ac11107d1598b24231179ec9c5b1aff080c8b6960
dependencies:
- golang-1-linux
4 changes: 2 additions & 2 deletions docs/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ These instructions are meant primarily for me when deploying a new BOSH release;
they might not make sense unless you're on my workstation.

```bash
export OLD_VERSION=2.3.0
export VERSION=2.4.0
export OLD_VERSION=2.4.0
export VERSION=2.4.1
cd ~/workspace/sslip.io
git pull -r --autostash
# update the version number for the TXT record for version.status.sslip.io
Expand Down
2 changes: 1 addition & 1 deletion k8s/Dockerfile-sslip.io-dns-server
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LABEL maintainer="brian.cunnie@gmail.com"
RUN apk update && apk add bind-tools

ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
RUN wget https://github.com/cunnie/sslip.io/releases/download/2.4.0/sslip.io-dns-server-linux-$TARGETARCH \
RUN wget https://github.com/cunnie/sslip.io/releases/download/2.4.1/sslip.io-dns-server-linux-$TARGETARCH \
-O /usr/sbin/sslip.io-dns-server; \
chmod 755 /usr/sbin/sslip.io-dns-server

Expand Down
2 changes: 1 addition & 1 deletion k8s/document_root/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h3 id="server">But I Want My Own DNS Server!</h3>
example, we install & run our server within a docker container:</p>
<pre>
docker run -it --rm fedora
curl -L https://github.com/cunnie/sslip.io/releases/download/2.4.0/sslip.io-dns-server-linux-amd64 -o dns-server
curl -L https://github.com/cunnie/sslip.io/releases/download/2.4.1/sslip.io-dns-server-linux-amd64 -o dns-server
chmod +x dns-server
./dns-server 2&gt; dns-server.log &
dnf install -y bind-utils
Expand Down
2 changes: 1 addition & 1 deletion spec/check-dns_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_whois_nameservers(domain)
end

domain = ENV['DOMAIN'] || 'example.com'
sslip_version = '2.4.0'
sslip_version = '2.4.1'
whois_nameservers = get_whois_nameservers(domain)

describe domain do
Expand Down

0 comments on commit 14ef9a0

Please sign in to comment.