Skip to content

Commit

Permalink
Merge pull request #1592 from aledbf/nginx-to-quay
Browse files Browse the repository at this point in the history
Update opentracing module and release image to  quay.io
  • Loading branch information
aledbf authored Oct 26, 2017
2 parents 05a6eb3 + e560536 commit ade79a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions images/nginx-slim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# 0.0.0 shouldn't clobber any released builds
TAG ?= 0.27
TAG ?= 0.28
REGISTRY ?= quay.io/kubernetes-ingress-controller
ARCH ?= $(shell go env GOARCH)
DOCKER ?= gcloud docker --
Expand Down Expand Up @@ -47,11 +47,11 @@ endif

TEMP_DIR := $(shell mktemp -d)

all: all-container

image-info:
echo -n '{"image":"$(IMAGE)","tag":"$(TAG)"}'

all: all-container

sub-container-%:
$(MAKE) ARCH=$* container

Expand Down
12 changes: 7 additions & 5 deletions images/nginx-slim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ nginx 1.13.x base image using [ubuntu-slim](https://github.com/kubernetes/ingres
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server.

This custom nginx image contains:

- [stream](http://nginx.org/en/docs/stream/ngx_stream_core_module.html) tcp support for upstreams
- nginx stats [nginx-module-vts](https://github.com/vozlt/nginx-module-vts)
- [Dynamic TLS record sizing](https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/)


**How to use this image:**
This image does provides a default configuration file with no backend servers.

*Using docker*
```
$ docker run -v /some/nginx.con:/etc/nginx/nginx.conf:ro gcr.io/google_containers/nginx-slim:0.27

```console
docker run -v /some/nginx.con:/etc/nginx/nginx.conf:ro quay.io/kubernetes-ingress-controller/nginx-slim:0.28
```

*Creating a replication controller*
```
$ kubectl create -f ./rc.yaml

```console
kubectl create -f ./rc.yaml
```
9 changes: 3 additions & 6 deletions images/nginx-slim/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ export STICKY_SESSIONS_VERSION=08a395c66e42
export MORE_HEADERS_VERSION=0.32
export NGINX_DIGEST_AUTH=7955af9c77598c697ac292811914ce1e2b3b824c
export NGINX_SUBSTITUTIONS=bc58cb11844bc42735bbaef7085ea86ace46d05b
export NGINX_OPENTRACING_VERSION=0.1.0
export NGINX_OPENTRACING_VERSION=0.1.1
export OPENTRACING_CPP_VERSION=1.0.0
export ZIPKIN_CPP_VERSION=0.1.0
export MODSECURITY=a2a5858d249222938c2f5e48087a922c63d7f9d8

export BUILD_PATH=/tmp/build

export NGINX_OPENTRACING_VENDOR="ZIPKIN"


ARCH=$(uname -p)

get_src()
Expand Down Expand Up @@ -117,7 +114,7 @@ get_src 9b1d0075df787338bb607f14925886249bda60b6b3156713923d5d59e99a708b \
get_src 618551948ab14cac51d6e4ad00452312c7b09938f59ebff4f93875013be31f2d \
"https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/$NGINX_SUBSTITUTIONS.tar.gz"

get_src 624bdcade5da12cc5bae52f0190155a6ff519e86209c6b3c9f5ca3baa5096aec \
get_src 8c55a7ec639b186689a0053eed5f1605f38c461f0d3ee6e728bb466a148a44d2 \
"https://github.com/opentracing-contrib/nginx-opentracing/archive/v$NGINX_OPENTRACING_VERSION.tar.gz"

get_src 9543f66790ba65810869a29b3aaef5286f1c446cb498a304d0d8b153c289cae8 \
Expand Down Expand Up @@ -207,7 +204,7 @@ WITH_MODULES="--add-module=$BUILD_PATH/ngx_devel_kit-$NDK_VERSION \
--add-module=$BUILD_PATH/nginx-goodies-nginx-sticky-module-ng-$STICKY_SESSIONS_VERSION \
--add-module=$BUILD_PATH/nginx-http-auth-digest-$NGINX_DIGEST_AUTH \
--add-module=$BUILD_PATH/ngx_http_substitutions_filter_module-$NGINX_SUBSTITUTIONS \
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/opentracing
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/opentracing \
--add-dynamic-module=$BUILD_PATH/nginx-opentracing-$NGINX_OPENTRACING_VERSION/zipkin"

if [[ ${ARCH} == "x86_64" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion images/nginx-slim/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ spec:
spec:
containers:
- name: nginxslim
image: gcr.io/google_containers/nginx-slim:0.27
image: quay.io/kubernetes-ingress-controller/nginx-slim:0.28
ports:
- containerPort: 80

0 comments on commit ade79a8

Please sign in to comment.