mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-05 15:46:50 +08:00
BOSH release: 2.4.1: fewer panics
customized records w/ non-existent TXTs don't panic().
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
cd $DIR/../src/sslip.io-dns-server
|
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.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
||||||
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
|
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
|
||||||
export GOOS GOARCH
|
export GOOS GOARCH
|
||||||
|
@@ -1,4 +1,8 @@
|
|||||||
builds:
|
builds:
|
||||||
|
01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9:
|
||||||
|
version: 01bf74d1f8706d5ee06a3d35e20064a6e2310b509ec5168dc61e381149f2c9f9
|
||||||
|
blobstore_id: fa32b6c6-b646-4399-5f96-9ae00aec6c65
|
||||||
|
sha1: sha256:345b69c95b2c4f2b8533935ac11107d1598b24231179ec9c5b1aff080c8b6960
|
||||||
037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6:
|
037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6:
|
||||||
version: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
|
version: 037e9cbd3401e13b101d8345ed35dd9f11e677d1a8ad32f61bd390c732b1f9b6
|
||||||
blobstore_id: d07828f0-f4ff-4966-7a52-fa25d3eba096
|
blobstore_id: d07828f0-f4ff-4966-7a52-fa25d3eba096
|
||||||
|
@@ -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.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.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
||||||
-X xip/xip.VersionGitHash=916e89c"
|
-X xip/xip.VersionGitHash=64d5832"
|
||||||
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
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
builds:
|
builds:
|
||||||
1c4de423-584b-42b9-59ab-93a123c96307:
|
1c4de423-584b-42b9-59ab-93a123c96307:
|
||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
|
43640b61-afe3-4bc0-79ed-4e279f286041:
|
||||||
|
version: 2.4.1
|
||||||
516ea48d-0717-494d-4082-9d8f0ab937df:
|
516ea48d-0717-494d-4082-9d8f0ab937df:
|
||||||
version: 1.3.1
|
version: 1.3.1
|
||||||
520c044f-c0d0-4fd8-72a4-ed482efa2a96:
|
520c044f-c0d0-4fd8-72a4-ed482efa2a96:
|
||||||
|
23
bosh-release/releases/sslip.io/sslip.io-2.4.1.yml
Normal file
23
bosh-release/releases/sslip.io/sslip.io-2.4.1.yml
Normal file
@@ -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,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.3.0
|
export OLD_VERSION=2.4.0
|
||||||
export VERSION=2.4.0
|
export VERSION=2.4.1
|
||||||
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
|
||||||
|
@@ -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.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; \
|
-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.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
|
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.4.0'
|
sslip_version = '2.4.1'
|
||||||
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