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

add go118 #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions 1.18/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
LABEL maintainer "GCPUG <https://gcpug.jp/>"

ENV GOPATH=/go \
PATH=/go/bin:/usr/local/go/bin:/google-cloud-sdk/bin:/google-cloud-sdk/platform/google_appengine:$PATH

ARG GOLANG_VERSION=1.18.10
ARG GOLANG_DOWNLOAD_SHA256=5e05400e4c79ef5394424c0eff5b9141cb782da25f64f79d54c98af0a37f8d49

RUN apk add --no-cache \
gcc \
libc-dev \
make \
unzip && \
\
gcloud components install \
app-engine-go \
beta && \
chmod +x /google-cloud-sdk/platform/google_appengine/*.py && \
\
curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz

VOLUME ["/root/.config"]
25 changes: 25 additions & 0 deletions 1.18/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:latest
LABEL maintainer "GCPUG <https://gcpug.jp/>"

ARG GOPATH=/go
ENV GOPATH=${GOPATH} \
PATH=/go/bin:/usr/local/go/bin:$PATH

ARG GOLANG_VERSION=1.18.10
ARG GOLANG_DOWNLOAD_SHA256=5e05400e4c79ef5394424c0eff5b9141cb782da25f64f79d54c98af0a37f8d49

RUN set -eux && \
apt-get update && \
apt-get install -yqq --no-install-suggests --no-install-recommends \
libc6-dev \
make \
unzip && \
rm -rf /var/lib/apt/lists/* && \
\
curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
mkdir ${GOPATH}

VOLUME ["/root/.config"]
26 changes: 26 additions & 0 deletions 1.18/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:slim
LABEL maintainer "GCPUG <https://gcpug.jp/>"

ARG GOPATH=/go
ENV GOPATH=${GOPATH} \
PATH=/go/bin:/usr/local/go/bin:$PATH

ARG GOLANG_VERSION=1.18.10
ARG GOLANG_DOWNLOAD_SHA256=5e05400e4c79ef5394424c0eff5b9141cb782da25f64f79d54c98af0a37f8d49

RUN set -eux && \
apt-get update && \
apt-get install -yqq --no-install-suggests --no-install-recommends \
google-cloud-sdk-app-engine-go \
libc6-dev \
make \
unzip && \
rm -rf /var/lib/apt/lists/* && \
\
curl -o go.tgz -sSL "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
echo "${GOLANG_DOWNLOAD_SHA256} *go.tgz" | sha256sum -c - && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
mkdir ${GOPATH}

VOLUME ["/root/.config"]