-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (29 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM gcr.io/google.com/cloudsdktool/cloud-sdk
RUN apt-get update && \
apt-get install -y \
# System dependencies.
build-essential \
gettext \
make \
gcc \
curl \
&& \
# kustomize
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash && \
mv kustomize /usr/local/bin/ && \
# Istio
# export ISTIO_VERSION=1.4.2 && \
# export URL="https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux.tar.gz" && \
# curl -L "${URL}" | tar xz && \
# ln -s /istio-${ISTIO_VERSION}/bin/istioctl /usr/local/bin/istioctl && \
ls -al /usr/local/bin/ && \
# istioctl verify-install && \ # Need gcloud/kubectl set up for this
# Kill off apt cache.
rm -rf /var/lib/apt/lists/*
COPY ./kubernetes kubernetes
COPY ./deploy.sh deploy.sh
COPY ./Makefile Makefile
# All args for cloud build come after this.
ENTRYPOINT ["./deploy.sh"]
# CMD should essentially behave as the default test
# CMD ["args", "for", "deploy"]