Skip to content

Commit 5c6cb3c

Browse files
kragnizjunr03
authored andcommitted
examples/front-proxy: base dockerfile on alpine (envoyproxy#2326)
Previously, the example wouldn't build due to the wrong version of python being used. Rather than go through the pain of installing a modern version of python on ubuntu:14.04, this patch just bases examples dockerfile on the envoy alpine image which includes the necessary version of python3 by default. Fixes envoyproxy#2262. Signed-off-by: Louis Taylor <[email protected]>
1 parent 2d8665a commit 5c6cb3c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

examples/front-proxy/Dockerfile-service

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
FROM envoyproxy/envoy:latest
1+
FROM envoyproxy/envoy-alpine:latest
22

3-
RUN apt-get update && apt-get -q install -y \
4-
curl \
5-
software-properties-common \
6-
python-software-properties
7-
RUN add-apt-repository ppa:deadsnakes/ppa
8-
RUN apt-get update && apt-get -q install -y \
9-
python3 \
10-
python3-pip
3+
RUN apk update && apk add python3 bash
114
RUN python3 --version && pip3 --version
12-
RUN pip3 install -q Flask==0.11.1
5+
RUN pip3 install -q Flask==0.11.1 requests==2.18.4
136
RUN mkdir /code
147
ADD ./service.py /code
158
ADD ./start_service.sh /usr/local/bin/start_service.sh

examples/front-proxy/start_service.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
python3 /code/service.py &
33
envoy -c /etc/service-envoy.yaml --service-cluster service${SERVICE_NAME}

0 commit comments

Comments
 (0)