ensure hosts are set when building

otherwise when we try to add the certs to .gnutls/known_hosts, it wont
get the correct cert
This commit is contained in:
Cory Forsstrom committed 2020-02-26 16:28:14 -08:00
1 parent d8a1c5332b
commit cb4cdee360
2 files changed
+12

No files matched your search

+3
View File
@@ -1,4 +1,7 @@
FROM alpine:latest FROM alpine:latest
RUN cat /etc/hosts
RUN apk update RUN apk update
RUN apk upgrade RUN apk upgrade
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
Executable
+9
View File
@@ -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" \
.