File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
# We start from my nginx fork which includes the proxy-connect module from tEngine
2
2
# Source is available at https://github.com/rpardini/nginx-proxy-connect-stable-alpine
3
3
# 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"
5
5
# Could be "-debug"
6
6
ARG BASE_IMAGE_SUFFIX=""
7
7
FROM ${BASE_IMAGE}${BASE_IMAGE_SUFFIX}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ echo " Entrypoint starting."
4
+
3
5
set -Eeuo pipefail
4
6
trap " echo TRAPed signal" HUP INT QUIT TERM
5
7
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' )
8
18
if [ " x$RESOLVERS " = " x" ]; then
9
19
echo " Warning: unable to determine DNS resolvers for nginx" >&2
10
20
exit 66
You can’t perform that action at this time.
0 commit comments