From 91048d058b12f96bda19b8357bf1ae0b03a005fa Mon Sep 17 00:00:00 2001
From: Brian Cunnie
Date: Sat, 19 Dec 2020 17:50:50 -0800
Subject: [PATCH] BOSH release: 1.3.0: CNAME records
---
.../packages/sslip.io-dns-server/index.yml | 4 ++++
bosh-release/releases/sslip.io/index.yml | 2 ++
.../releases/sslip.io/sslip.io-1.3.0.yml | 23 ++++++++++++++++++
docs/DEVELOPER.md | 24 ++++++++++++-------
k8s/document_root/index.html | 2 +-
5 files changed, 46 insertions(+), 9 deletions(-)
create mode 100644 bosh-release/releases/sslip.io/sslip.io-1.3.0.yml
diff --git a/bosh-release/.final_builds/packages/sslip.io-dns-server/index.yml b/bosh-release/.final_builds/packages/sslip.io-dns-server/index.yml
index 437474a..44787bb 100644
--- a/bosh-release/.final_builds/packages/sslip.io-dns-server/index.yml
+++ b/bosh-release/.final_builds/packages/sslip.io-dns-server/index.yml
@@ -1,4 +1,8 @@
builds:
+ 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6:
+ version: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
+ blobstore_id: d07828f0-f4ff-4966-7a52-fa25d3eba096
+ sha1: sha256:3b5eacdc0776df52ba6a4ecc73b3bc2f3f705cc09c26eecf0547a73405f62e71
2da04cb692557030ff9dd8ac08886d38aed0ea612963588e124928c187dc825a:
version: 2da04cb692557030ff9dd8ac08886d38aed0ea612963588e124928c187dc825a
blobstore_id: 221ddfff-f5ba-4454-6e35-6e7472e40667
diff --git a/bosh-release/releases/sslip.io/index.yml b/bosh-release/releases/sslip.io/index.yml
index 37f17ed..069fbf6 100644
--- a/bosh-release/releases/sslip.io/index.yml
+++ b/bosh-release/releases/sslip.io/index.yml
@@ -1,6 +1,8 @@
builds:
1c4de423-584b-42b9-59ab-93a123c96307:
version: 1.2.0
+ 520c044f-c0d0-4fd8-72a4-ed482efa2a96:
+ version: 1.3.0
7967ba6b-8992-4d38-7fdc-ada9154e39b7:
version: 1.0.0
8298b178-a428-4fc9-4eff-49797db4cf42:
diff --git a/bosh-release/releases/sslip.io/sslip.io-1.3.0.yml b/bosh-release/releases/sslip.io/sslip.io-1.3.0.yml
new file mode 100644
index 0000000..95790f3
--- /dev/null
+++ b/bosh-release/releases/sslip.io/sslip.io-1.3.0.yml
@@ -0,0 +1,23 @@
+name: sslip.io
+version: 1.3.0
+commit_hash: 2a8cbdf
+uncommitted_changes: true
+jobs:
+- name: sslip.io-dns-server
+ version: 308acb7c186a042bc2ca4c28b83c9fe7589a64c48ab6a11869c442bcaea8fdf9
+ fingerprint: 308acb7c186a042bc2ca4c28b83c9fe7589a64c48ab6a11869c442bcaea8fdf9
+ sha1: sha256:6ca6f2c11816a82ecb3cf9300ea59369977cbaa7c39eddca35628a7c6b9b5b45
+ packages:
+ - sslip.io-dns-server
+packages:
+- name: golang-1-linux
+ version: f9b637fa0c031f977d2418949a3182e21fe2d95505595ebfe558a448501a8ad6
+ fingerprint: f9b637fa0c031f977d2418949a3182e21fe2d95505595ebfe558a448501a8ad6
+ sha1: sha256:a862fe14c40ee5fa36ebec6db08895846f955e10a22e4e4504081290317316f4
+ dependencies: []
+- name: sslip.io-dns-server
+ version: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
+ fingerprint: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
+ sha1: sha256:3b5eacdc0776df52ba6a4ecc73b3bc2f3f705cc09c26eecf0547a73405f62e71
+ dependencies:
+ - golang-1-linux
diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md
index c955dd8..c1b13ab 100644
--- a/docs/DEVELOPER.md
+++ b/docs/DEVELOPER.md
@@ -4,8 +4,8 @@ These instructions are meant primarily for me when deploying a new BOSH release;
the might not make sense unless you're on my workstation.
```
-export OLD_VERSION=1.2.0
-export VERSION=1.2.1
+export OLD_VERSION=1.2.2
+export VERSION=1.3.0
cd ~/go/src/github.com/cunnie/sslip.io
git pull -r
sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" k8s/document_root/index.html # update the download instructions on the website
@@ -18,12 +18,20 @@ bosh upload-release
bosh -n -d sslip.io-dns-server deploy ~/workspace/deployments/sslip.io-dns-server.yml --recreate
bosh instances # record the IP address of the instance
IP=10.0.250.22
-dig +short 127.0.0.1.example.com @$IP # 127.0.0.1
-dig +short ns example.com @$IP # ns-aws, ns-azure, ns-gce
-dig +short mx example.com @$IP # 1 x themselves
-dig +short mx sslip.io @$IP # 2 x protonmail
-dig +short txt sslip.io @$IP # 2 x protonmail
+dig +short 127.0.0.1.example.com @$IP
+echo 127.0.0.1
+dig +short ns example.com @$IP
+printf "ns-aws.nono.io.\nns-azure.nono.io.\nns-gce.nono.io."
+dig +short mx example.com @$IP
+echo "0 example.com."
+dig +short mx sslip.io @$IP
+printf "10 mail.protonmail.ch.\n20 mailsec.protonmail.ch."
+dig +short txt sslip.io @$IP
+printf "\"protonmail-verification=ce0ca3f5010aa7a2cf8bcc693778338ffde73e26\"\n\"v=spf1 include:_spf.protonmail.ch mx ~all\""
dig +short txt 127.0.0.1.sslip.io @$IP # no records
+dig +short cname sslip.io @$IP # no records
+dig +short cname protonmail._domainkey.sslip.io @$IP
+echo protonmail.domainkey.dw4gykv5i2brtkjglrf34wf6kbxpa5hgtmg2xqopinhgxn5axo73a.domains.proton.ch.
bosh upload-blobs
bosh create-release \
--final \
@@ -31,7 +39,7 @@ bosh create-release \
--version ${VERSION} --force
git add -N releases/ .final_builds/
git add -p
-git ci -v # BOSH release: 1.2.1: TXT records
+git ci -v # BOSH release: 1.3.0: CNAME records
git tag $VERSION
git push
git push --tags
diff --git a/k8s/document_root/index.html b/k8s/document_root/index.html
index 54c4c0f..aaf9d24 100644
--- a/k8s/document_root/index.html
+++ b/k8s/document_root/index.html
@@ -157,7 +157,7 @@ src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js">
our server within a docker container:
docker run -it --rm fedora
-curl -L https://github.com/cunnie/sslip.io/releases/download/1.2.2/sslip.io-dns-server-linux-amd64 -o dns-server
+curl -L https://github.com/cunnie/sslip.io/releases/download/1.3.0/sslip.io-dns-server-linux-amd64 -o dns-server
chmod +x dns-server
./dns-server 2> dns-server.log &
dnf install -y bind-utils