google-cloud-platform - 使用自定义脚本自定义实例的 Google Cloud 自定义 VM 实例
问题描述
我正在寻找有关如何自定义 Google Cloud VM 实例的想法。
我的一个非常简单的需求是在启动后不久执行一个脚本。
怎么走?
谢谢
纳迦维杰亚普拉姆
解决方案
想好了怎么做...
gcloud compute instances create example-instance \
--metadata-from-file startup-script=scripts/abc.sh \
--subnet=default \
--zone=us-central1-b
推荐阅读
- json - 使用几个变量插值从 bash 管道写入 json
- r - 如何将向量分类到R中的bin中?
- javascript - MQTT.js subscribe() 函数的回调未捕获错误消息
- filter - 在 AttributeInspector (SmartEditor Widget) 的下拉列表中过滤值
- dafny - Dafny 处理位向量
- python - jinja2 可以替换属性文件中的值吗?
- python - 从字典列表中创建具有特定值的列表(作为字符串的键和值是整数列表)
- kernel - 当 devicetree 不存在时如何进入内核模块 probe() 函数
- crystal-reports - 水晶报表子轨道运行总计
- jenkins - 无法使用 API Token 命令行 curl 触发 Jenkins 作业