From cb4cdee360d3345547d260b0966fa3914ac639f4 Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Wed, 26 Feb 2020 16:28:14 -0800 Subject: [PATCH] ensure hosts are set when building otherwise when we try to add the certs to .gnutls/known_hosts, it wont get the correct cert --- Dockerfile | 3 +++ build.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile index ad0d2e7..4898cb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ FROM alpine:latest + +RUN cat /etc/hosts + RUN apk update RUN apk upgrade RUN apk add --no-cache ca-certificates diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1a5e08f --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +export IP=$(getent ahostsv4 freegamez.ga | awk '{ print $1 }' | head -1) + +docker build -t taylorbourne/xteve_lazystream \ + --add-host="mf.svc.nhl.com:$IP" \ + --add-host="playback.svcs.mlb.com:$IP" \ + --add-host="mlb-ws-mf.media.mlb.com:$IP" \ + .