Dockerfile 1.14 KB
Newer Older
Sean Holung's avatar
Sean Holung committed
1
FROM debian:stretch-slim
2
3

# Install node
Erin Krengel's avatar
Erin Krengel committed
4
RUN apt-get update -y && \
Sean Holung's avatar
Sean Holung committed
5
    apt-get install curl -y && \
Erin Krengel's avatar
Erin Krengel committed
6
    apt-get install sudo -y && \
Sean Holung's avatar
Sean Holung committed
7
    apt-get install apt-transport-https ca-certificates -y && \
Erin Krengel's avatar
Erin Krengel committed
8
9
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && \
    apt-get install -y nodejs
10

Sean Holung's avatar
Sean Holung committed
11
12
13
14
# Install Pulumi
RUN curl -fsSL https://get.pulumi.com/ | sh && \
    mv ~/.pulumi/bin/* /usr/bin

15
# Install gcloud CLI
Sean Holung's avatar
Sean Holung committed
16
17
18
19
RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk main" > /etc/apt/sources.list.d/google-cloud-sdk.list && \
    curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
    apt-get update && \
    apt-get install -y google-cloud-sdk
Erin Krengel's avatar
Erin Krengel committed
20

21
# Install kubectl
Sean Holung's avatar
Sean Holung committed
22
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.6/bin/linux/amd64/kubectl
23
24
25
26
27
28
29
30
31
32
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/bin

# Add and use a non-root user.
RUN groupadd -g 61000 docker
RUN useradd -g 61000 -l -m -s /bin/false -u 61000 docker
USER docker

# Confirm we have all necessary installs on our path.
RUN gcloud version
Sean Holung's avatar
Sean Holung committed
33
RUN pulumi version
34
35
RUN npm -v
RUN kubectl version --client=true --short=true
Erin Krengel's avatar
Erin Krengel committed
36
37

CMD [ "/bin/bash" ]