[英]Deploying a custom build of Datalab to Google Cloud platform
For a project we are trying to expand Google Cloud Datalab and deploy the modified version to the Google Cloud platform. 对于一个项目,我们正在尝试扩展Google Cloud Datalab并将修改后的版本部署到Google云平台。 As I understand it, the deploying process normally consists of the following steps:
据我了解,部署过程通常包括以下步骤:
container
parameter with the Google Cloud deployer to specify the correct Docker image, as explained here . container
参数与谷歌云部署到指定正确的码头工人的形象,说明这里 。 Since the default container registry, ie gcr.io/cloud_datalab/datalab:<tag>
is off-limits for non-Datalab contributors, we pushed the Docker image to our own container registry, ie to gcr.io/<project_id>/datalab:<tag>
. 由于默认的容器注册表,即
gcr.io/cloud_datalab/datalab:<tag>
是非gcr.io/cloud_datalab/datalab:<tag>
,我们将Docker镜像推送到我们自己的容器注册表,即gcr.io/<project_id>/datalab:<tag>
。
However, the Google Cloud deployer only pulls directly from gcr.io/cloud_datalab/datalab:<tag>
(with the tag specified by the container
parameter) and does not seem to allow specification of the source container registry. 但是,Google Cloud部署程序仅直接从
gcr.io/cloud_datalab/datalab:<tag>
(带有container
参数指定的标记)中提取,并且似乎不允许指定源容器注册表。 The deployer does not appear to be open-source, leaving us with no way to deploy our image to Google Cloud. 部署者似乎不是开源的,使我们无法将我们的图像部署到Google Cloud。
We have looked into creating a custom deployment similar to the example listed here but this never starts Datalab, so we suspect the start script is more complicated. 我们已经研究过创建类似于此处列出的示例的自定义部署,但这从未启动Datalab,因此我们怀疑启动脚本更复杂。
Question : How can we deploy a Datalab image from our own container registry to Google Cloud? 问题 :我们如何将Datalab图像从我们自己的容器注册表部署到Google Cloud?
Many thanks in advance. 提前谢谢了。
The deployment parameters can be guessed but it is easier to get the Google Cloud Datalab deployment script by ssh
ing to the temporary compute node that is responsible for deployment and browsing the /datalab
folder. 可以猜测部署参数,但通过
ssh
到负责部署和浏览/datalab
文件夹的临时计算节点,可以更轻松地获取Google Cloud Datalab部署脚本。 This contains a runtime configuration file for use with the App Engine Flexible Environment . 它包含用于App Engine Flexible Environment的运行时配置文件。 Using this configuration file, the
google preview app deploy
command (which accepts an --image
parameter for Docker images) will deploy this to the App Engine correctly. 使用此配置文件,
google preview app deploy
命令(接受Docker镜像的--image
参数)将正确地将其部署到App Engine。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.