google-app-engine - Cloud Container Builder,ZIP不支持1980年之前的时间戳

标签 google-app-engine google-cloud-platform google-cloud-functions google-container-registry google-container-builder

我正在尝试以下教程。

Automatic serverless deployments with Cloud Source Repositories and Container Builder

但是我得到了下面的错误。

$ gcloud container builds submit --config deploy.yaml .

BUILD
Already have image (with digest): gcr.io/cloud-builders/gcloud
ERROR: (gcloud.beta.functions.deploy) Error creating a ZIP archive with the source code for directory .: ZIP does not support timestamps before 1980
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: exit status 1

我现在正在尝试解决它。你有什么主意吗?我的 gcloud 是最新版本。

$ gcloud -v
Google Cloud SDK 193.0.0
app-engine-go 
app-engine-python 1.9.67
beta 2017.09.15
bq 2.0.30
core 2018.03.09
gsutil 4.28

教程中的示例谷歌云函数代码。

#index.js
exports.f = function(req, res) {
  res.send("hello, gcf!");
};

#deploy.yaml
steps:
- name: gcr.io/cloud-builders/gcloud
  args:
  - beta
  - functions
  - deploy
  - --trigger-http
  - --source=.
  - --entry-point=f
  - hello-gcf # Function name

#deploying without Cloud Container Builder is fine.
gcloud beta functions deploy --trigger-http --source=. --entry-point=f hello-gcf

最佳答案

Container Builder 将您的源文件夹打包。也许你的 .目录有损坏的日期?这就是将它移动到源文件夹修复它的原因。

关于google-app-engine - Cloud Container Builder,ZIP不支持1980年之前的时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49297234/

相关文章:

database - 如何从 GAE 数据存储中删除列(属性)?

iOS 客户端尝试将所有字段设置为 null 的对象插入到本地主机上的端点

google-cloud-platform - 如何获取新 Google 项目的客户端 ID?

firebase - 如何模拟 Firebase 扩展?

google-cloud-platform - 防火墙问题 - 从 GKE 到 Cloud Function HTTP 触发器的导出

javascript - Firebase Cloud Functions 的 Node RESTful API

java - 如何使用 java 从 google app engine 中的模型中删除字段?

google-app-engine - 在本地测试谷歌云端点

mysql - 从本地数据库将数据加载到 Bigquery

php - 为 Google Compute Engine 托管的 Wordpress 激活邮件的最佳方式?