Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Add tzdata at version 2020f #1

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
15 changes: 15 additions & 0 deletions zoneinfo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM alpine:3 as zoneinfo
RUN apk --no-cache add ca-certificates
# ADD https://github.com/golang/go/raw/master/lib/time/zoneinfo.zip .
# 2020f
ADD https://github.com/golang/go/tree/20d0991b86f533a734cad96b2002678d9750e6d8/lib/time/zoneinfo.zip .

FROM scratch
# https://golang.org/pkg/time/#LoadLocation
# https://golang.org/src/time/zoneinfo_unix.go
# Many systems use /usr/share/zoneinfo, Solaris 2 has
# /usr/share/lib/zoneinfo, IRIX 6 has /usr/lib/locale/TZ.
ENV ZONEINFO /usr/share/zoneinfo

# Copy the time zone database.
COPY --from=zoneinfo /zoneinfo.zip /usr/share/zoneinfo
15 changes: 15 additions & 0 deletions zoneinfo/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# In this directory, run the following command to build this builder.
# $ gcloud builds submit

steps:
# Build all supported versions.
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--tag=us.gcr.io/$PROJECT_ID/zoneinfo:2020f'
- '.'

timeout: 1m0s

images:
- 'us.gcr.io/$PROJECT_ID/zoneinfo:2020f'