Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed gcloud install method #13

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine
ENV VERSION=v1.23.0
ENV NODE_ENV=production
ENV SERVICE_ENABLE_SSHD=true
Expand All @@ -7,6 +7,12 @@ ENV SERVICE_ENABLE_FIREBASE=false

RUN apk update && apk upgrade && apk add bash

RUN apk --update add openjdk7-jre

RUN gcloud components install app-engine-java kubectl

RUN apk add --update nodejs npm

RUN apk add --no-cache git openssh nfs-utils rpcbind curl ca-certificates nano tzdata ncurses make tcpdump \
&& curl -L https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
Expand All @@ -17,10 +23,6 @@ RUN apk add --no-cache git openssh nfs-utils rpcbind curl ca-certificates nano t
&& echo "America/New_York" > /etc/timezone \
&& apk del tzdata

RUN curl -sSL https://sdk.cloud.google.com > /tmp/gcl && bash /tmp/gcl --install-dir=/root --disable-prompts

RUN export PATH=$PATH:/root/google-cloud-sdk/bin

RUN gcloud components update kubectl

RUN gcloud components install gke-gcloud-auth-plugin
Expand Down