File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11# We start from my nginx fork which includes the proxy-connect module from tEngine
22# Source is available at https://github.com/rpardini/nginx-proxy-connect-stable-alpine
33# This is already multi-arch!
4- ARG BASE_IMAGE="rpardini/nginx-proxy-connect-stable-alpine:nginx-1.18.0-alpine-3.12.1"
4+ ARG BASE_IMAGE="docker.io/ rpardini/nginx-proxy-connect-stable-alpine:nginx-1.18.0-alpine-3.12.1"
55# Could be "-debug"
66ARG BASE_IMAGE_SUFFIX=""
77FROM ${BASE_IMAGE}${BASE_IMAGE_SUFFIX}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ echo " Entrypoint starting."
4+
35set -Eeuo pipefail
46trap " echo TRAPed signal" HUP INT QUIT TERM
57
6- # configure nginx DNS settings to match host, why must we do that nginx?
7- export RESOLVERS=$( awk ' $1 == "nameserver" {print ($2 ~ ":")? "["$2"]": $2}' ORS=' ' /etc/resolv.conf | sed ' s/ *$//g' )
8+ # configure nginx DNS settings to match host, why must we do that nginx?
9+ # this leads to a world of problems. ipv6 format being different, etc.
10+ # below is a collection of hacks contributed over the years.
11+
12+ echo " -- resolv.conf:"
13+ cat /etc/resolv.conf
14+ echo " -- end resolv"
15+
16+ # Podman adds a "%3" to the end of the last resolver? I don't get it. Strip it out.
17+ export RESOLVERS=$( cat /etc/resolv.conf | sed -e ' s/%3//g' | awk ' $1 == "nameserver" {print ($2 ~ ":")? "["$2"]": $2}' ORS=' ' | sed ' s/ *$//g' )
818if [ " x$RESOLVERS " = " x" ]; then
919 echo " Warning: unable to determine DNS resolvers for nginx" >&2
1020 exit 66
You can’t perform that action at this time.
0 commit comments