Skip to content

Commit

Permalink
BOSH release: 1.3.0: CNAME records
Browse files Browse the repository at this point in the history
  • Loading branch information
cunnie committed Dec 20, 2020
1 parent 2a8cbdf commit 78c4d29
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
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
520c044f-c0d0-4fd8-72a4-ed482efa2a96:
version: 1.3.0
7967ba6b-8992-4d38-7fdc-ada9154e39b7:
version: 1.0.0
8298b178-a428-4fc9-4eff-49797db4cf42:
Expand Down
23 changes: 23 additions & 0 deletions bosh-release/releases/sslip.io/sslip.io-1.3.0.yml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 16 additions & 8 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;
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
Expand All @@ -18,20 +18,28 @@ 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 \
--tarball ~/Downloads/sslip.io-release-${VERSION}.tgz \
--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
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 @@ -157,7 +157,7 @@ <h3 id="server">But I Want My Own DNS Server!</h3>
our server within a docker container:</p>
<pre>
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&gt; dns-server.log &
dnf install -y bind-utils
Expand Down

0 comments on commit 78c4d29

Please sign in to comment.