2018-05-09 15:23:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
# Install build utilities
|
|
|
|
apk --no-cache add curl
|
|
|
|
|
|
|
|
# Get latest versions of tools using latestver
|
2019-07-29 07:57:20 +00:00
|
|
|
#COREDNS_VERSION=$(curl -sSfL 'https://lv.luzifer.io/catalog-api/coredns/latest.txt?p=version')
|
|
|
|
COREDNS_VERSION=1.5.2
|
2018-05-09 15:23:04 +00:00
|
|
|
DUMB_INIT_VERSION=$(curl -sSfL 'https://lv.luzifer.io/catalog-api/dumb-init/latest.txt?p=version')
|
|
|
|
|
|
|
|
[ -z "${COREDNS_VERSION}" ] && { exit 1; }
|
|
|
|
[ -z "${DUMB_INIT_VERSION}" ] && { exit 1; }
|
|
|
|
|
|
|
|
# Install tools
|
2019-07-29 07:57:20 +00:00
|
|
|
curl -sSfL https://github.com/coredns/coredns/releases/download/v${COREDNS_VERSION}/coredns_${COREDNS_VERSION}_linux_amd64.tgz |
|
|
|
|
tar -x -z -C /usr/local/bin
|
2018-05-09 15:23:04 +00:00
|
|
|
|
|
|
|
curl -sSfLo /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_amd64
|
|
|
|
chmod +x /usr/local/bin/dumb-init
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
apk --no-cache del curl
|