Skip to content

Commit

Permalink
Docker: Improve Published Docker Images (envoyproxy#2850)
Browse files Browse the repository at this point in the history
This is an initial update to the docker images that are created
and published to hub.dockerhub.com.

The purpose is to provide users with an image that can be ready
to run from the moment they issue docker pull.

Signed-off-by: Nicholas Johns <[email protected]>
  • Loading branch information
taion809 authored and mattklein123 committed Apr 3, 2018
1 parent c69f959 commit 6527996
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ci/Dockerfile-envoy-alpine
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
FROM frolvlad/alpine-glibc

ENV loglevel=info

RUN apk upgrade --update-cache \
&& apk add dumb-init \
&& rm -rf /var/cache/apk/*

RUN mkdir -p /etc/envoy

ADD build_release_stripped/envoy /usr/local/bin/envoy
ADD configs/google_com_proxy.v2.yaml /etc/envoy/envoy.yaml

EXPOSE 10000

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD /usr/local/bin/envoy --v2-config-only -l $loglevel -c /etc/envoy/envoy.yaml
14 changes: 14 additions & 0 deletions ci/Dockerfile-envoy-alpine-debug
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
FROM frolvlad/alpine-glibc

ENV loglevel=info

RUN apk upgrade --update-cache \
&& apk add dumb-init \
&& rm -rf /var/cache/apk/*

RUN mkdir -p /etc/envoy

ADD build_release/envoy /usr/local/bin/envoy
ADD configs/google_com_proxy.v2.yaml /etc/envoy/envoy.yaml

EXPOSE 10000

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD /usr/local/bin/envoy --v2-config-only -l $loglevel -c /etc/envoy/envoy.yaml
23 changes: 23 additions & 0 deletions ci/Dockerfile-envoy-image
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
FROM ubuntu:16.04

ARG dumbinit_version=1.2.1
ENV loglevel=info

RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y wget ca-certificates \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /tmp/* /var/tmp/* \
&& rm -rf /var/lib/apt/lists/*


RUN wget https://github.com/Yelp/dumb-init/releases/download/v${dumbinit_version}/dumb-init_${dumbinit_version}_amd64.deb \
&& dpkg -i dumb-init_${dumbinit_version}_amd64.deb

RUN mkdir -p /etc/envoy

ADD build_release_stripped/envoy /usr/local/bin/envoy
ADD configs/google_com_proxy.v2.yaml /etc/envoy/envoy.yaml

EXPOSE 10000

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD /usr/local/bin/envoy --v2-config-only -l $loglevel -c /etc/envoy/envoy.yaml

0 comments on commit 6527996

Please sign in to comment.