mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-05 23:56:50 +08:00
BOSH release: 2.4.0: metrics.status.sslip.io returns metrics
Also, I moved the "versio" endpoint: `version.sslip.io` → `version.status.sslip.io`. It seemed to make more sense to corral the special endpoints under `status`.
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
builds:
|
builds:
|
||||||
|
1ab563903c1f130ca908d3abdbf66650a395d3b77134474bff837aeed3649c06:
|
||||||
|
version: 1ab563903c1f130ca908d3abdbf66650a395d3b77134474bff837aeed3649c06
|
||||||
|
blobstore_id: 6b71acab-8a9e-4a31-6a18-9528302cb7e7
|
||||||
|
sha1: sha256:1f4f73a903b8f59b46d9a8ff813961615126b843eafa991c7dc950ae9a2a0bf1
|
||||||
92655dbac2d36906f0d761ab03f2eb6bfa9a22730d8f1591a1acb7a6de875ed4:
|
92655dbac2d36906f0d761ab03f2eb6bfa9a22730d8f1591a1acb7a6de875ed4:
|
||||||
version: 92655dbac2d36906f0d761ab03f2eb6bfa9a22730d8f1591a1acb7a6de875ed4
|
version: 92655dbac2d36906f0d761ab03f2eb6bfa9a22730d8f1591a1acb7a6de875ed4
|
||||||
blobstore_id: c129564b-d431-4b01-6cc1-698d427d5bc0
|
blobstore_id: c129564b-d431-4b01-6cc1-698d427d5bc0
|
||||||
|
@@ -79,4 +79,8 @@ builds:
|
|||||||
version: f14e1f7d3ecbc953136176b39b026e99360401f42c01b61db2083d7cc3f0a06e
|
version: f14e1f7d3ecbc953136176b39b026e99360401f42c01b61db2083d7cc3f0a06e
|
||||||
blobstore_id: 7f1b9c5b-1eb2-4761-5212-f857dbf704d3
|
blobstore_id: 7f1b9c5b-1eb2-4761-5212-f857dbf704d3
|
||||||
sha1: sha256:d87942b41f324af704c9cb6afa2c1dc321f810dc84599459404470ad07aa045f
|
sha1: sha256:d87942b41f324af704c9cb6afa2c1dc321f810dc84599459404470ad07aa045f
|
||||||
|
f73fd57052c9a5e5372cd20cc4515bb4342ab25a634098cf94e81ccfa9e1f410:
|
||||||
|
version: f73fd57052c9a5e5372cd20cc4515bb4342ab25a634098cf94e81ccfa9e1f410
|
||||||
|
blobstore_id: 6ca340ef-c2f5-44af-5f3c-fb8a20754e8c
|
||||||
|
sha1: sha256:158e2ae0bf4043f538c5277a406dde1beb73a3443c2e44247df2dd560949d662
|
||||||
format-version: "2"
|
format-version: "2"
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
name: golang-1-linux
|
name: golang-1-linux
|
||||||
fingerprint: 92655dbac2d36906f0d761ab03f2eb6bfa9a22730d8f1591a1acb7a6de875ed4
|
fingerprint: 1ab563903c1f130ca908d3abdbf66650a395d3b77134474bff837aeed3649c06
|
||||||
|
@@ -5,9 +5,9 @@ source /var/vcap/packages/golang-1-linux/bosh/compile.env
|
|||||||
mkdir src ${BOSH_INSTALL_TARGET}/bin
|
mkdir src ${BOSH_INSTALL_TARGET}/bin
|
||||||
mv sslip.io-dns-server/{go.*,main.go,xip} src/
|
mv sslip.io-dns-server/{go.*,main.go,xip} src/
|
||||||
cd src/
|
cd src/
|
||||||
ldflags="-X xip/xip.VersionSemantic=2.3.0 \
|
ldflags="-X xip/xip.VersionSemantic=2.4.0 \
|
||||||
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
||||||
-X xip/xip.VersionGitHash=84ffaee"
|
-X xip/xip.VersionGitHash=916e89c"
|
||||||
go build \
|
go build \
|
||||||
-ldflags="$ldflags" \
|
-ldflags="$ldflags" \
|
||||||
-o ${BOSH_INSTALL_TARGET}/bin/sslip.io-dns-server
|
-o ${BOSH_INSTALL_TARGET}/bin/sslip.io-dns-server
|
||||||
|
@@ -39,4 +39,6 @@ builds:
|
|||||||
version: 2.2.4
|
version: 2.2.4
|
||||||
dbbd518f-f17e-4f92-4878-327817590ec8:
|
dbbd518f-f17e-4f92-4878-327817590ec8:
|
||||||
version: 2.2.3
|
version: 2.2.3
|
||||||
|
f9e9294d-f36a-4f2a-57c9-66db30679487:
|
||||||
|
version: 2.4.0
|
||||||
format-version: "2"
|
format-version: "2"
|
||||||
|
23
bosh-release/releases/sslip.io/sslip.io-2.4.0.yml
Normal file
23
bosh-release/releases/sslip.io/sslip.io-2.4.0.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: sslip.io
|
||||||
|
version: 2.4.0
|
||||||
|
commit_hash: "53378e4"
|
||||||
|
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: f73fd57052c9a5e5372cd20cc4515bb4342ab25a634098cf94e81ccfa9e1f410
|
||||||
|
fingerprint: f73fd57052c9a5e5372cd20cc4515bb4342ab25a634098cf94e81ccfa9e1f410
|
||||||
|
sha1: sha256:158e2ae0bf4043f538c5277a406dde1beb73a3443c2e44247df2dd560949d662
|
||||||
|
dependencies:
|
||||||
|
- golang-1-linux
|
@@ -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.
|
they might not make sense unless you're on my workstation.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export OLD_VERSION=2.2.4
|
export OLD_VERSION=2.3.0
|
||||||
export VERSION=2.3.0
|
export VERSION=2.4.0
|
||||||
cd ~/workspace/sslip.io
|
cd ~/workspace/sslip.io
|
||||||
git pull -r --autostash
|
git pull -r --autostash
|
||||||
# update the version number for the TXT record for version.status.sslip.io
|
# update the version number for the TXT record for version.status.sslip.io
|
||||||
@@ -51,18 +51,19 @@ dig @$IP txt ip.sslip.io +short | tr -d '"'
|
|||||||
curl curlmyip.org; echo
|
curl curlmyip.org; echo
|
||||||
dig @$IP txt version.status.sslip.io +short | grep $VERSION
|
dig @$IP txt version.status.sslip.io +short | grep $VERSION
|
||||||
echo "\"$VERSION\""
|
echo "\"$VERSION\""
|
||||||
dig @$IP my-key.kv.sslip.io txt +short # returns nothing
|
dig @$IP my-key.k-v.io txt +short # returns nothing
|
||||||
echo " ===" # separator because the results are too similar
|
echo " ===" # separator because the results are too similar
|
||||||
dig @$IP put.MyValue.my-key.kv.sslip.io txt +short
|
dig @$IP put.MyValue.my-key.k-v.io txt +short
|
||||||
echo "\"MyValue\""
|
echo "\"MyValue\""
|
||||||
echo " ===" # separator because the results are too similar
|
echo " ===" # separator because the results are too similar
|
||||||
dig @$IP MY-KEY.kv.sslip.io txt +short
|
dig @$IP MY-KEY.k-v.io txt +short
|
||||||
echo "\"MyValue\""
|
echo "\"MyValue\""
|
||||||
echo " ===" # separator because the results are too similar
|
echo " ===" # separator because the results are too similar
|
||||||
dig @$IP delete.my-key.kv.sslip.io txt +short
|
dig @$IP delete.my-key.k-v.io txt +short
|
||||||
echo "\"MyValue\""
|
echo "\"MyValue\""
|
||||||
echo " ===" # separator because the results are too similar
|
echo " ===" # separator because the results are too similar
|
||||||
dig @$IP my-key.kv.sslip.io txt +short # returns nothing
|
dig @$IP my-key.k-v.io txt +short # returns nothing
|
||||||
|
dig @$IP metrics.status.sslip.io txt +short
|
||||||
pushd ..
|
pushd ..
|
||||||
git add -p
|
git add -p
|
||||||
git ci -vm"BOSH release: $VERSION: kv.sslip.io key-value store"
|
git ci -vm"BOSH release: $VERSION: kv.sslip.io key-value store"
|
||||||
|
@@ -26,7 +26,7 @@ LABEL maintainer="brian.cunnie@gmail.com"
|
|||||||
RUN apk update && apk add bind-tools
|
RUN apk update && apk add bind-tools
|
||||||
|
|
||||||
ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
|
ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
|
||||||
RUN wget https://github.com/cunnie/sslip.io/releases/download/2.3.0/sslip.io-dns-server-linux-$TARGETARCH \
|
RUN wget https://github.com/cunnie/sslip.io/releases/download/2.4.0/sslip.io-dns-server-linux-$TARGETARCH \
|
||||||
-O /usr/sbin/sslip.io-dns-server; \
|
-O /usr/sbin/sslip.io-dns-server; \
|
||||||
chmod 755 /usr/sbin/sslip.io-dns-server
|
chmod 755 /usr/sbin/sslip.io-dns-server
|
||||||
|
|
||||||
|
@@ -156,7 +156,7 @@ src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
|
|||||||
example, we install & run our server within a docker container:</p>
|
example, we install & run our server within a docker container:</p>
|
||||||
<pre>
|
<pre>
|
||||||
docker run -it --rm fedora
|
docker run -it --rm fedora
|
||||||
curl -L https://github.com/cunnie/sslip.io/releases/download/2.3.0/sslip.io-dns-server-linux-amd64 -o dns-server
|
curl -L https://github.com/cunnie/sslip.io/releases/download/2.4.0/sslip.io-dns-server-linux-amd64 -o dns-server
|
||||||
chmod +x dns-server
|
chmod +x dns-server
|
||||||
./dns-server 2> dns-server.log &
|
./dns-server 2> dns-server.log &
|
||||||
dnf install -y bind-utils
|
dnf install -y bind-utils
|
||||||
|
@@ -18,7 +18,7 @@ def get_whois_nameservers(domain)
|
|||||||
end
|
end
|
||||||
|
|
||||||
domain = ENV['DOMAIN'] || 'example.com'
|
domain = ENV['DOMAIN'] || 'example.com'
|
||||||
sslip_version = '2.3.0'
|
sslip_version = '2.4.0'
|
||||||
whois_nameservers = get_whois_nameservers(domain)
|
whois_nameservers = get_whois_nameservers(domain)
|
||||||
|
|
||||||
describe domain do
|
describe domain do
|
||||||
|
Reference in New Issue
Block a user