首页 > 其他分享 >Google Earth Engine(GEE)——MODIS影像平滑函数的进行

Google Earth Engine(GEE)——MODIS影像平滑函数的进行

时间:2022-12-08 14:55:41浏览次数:60  
标签:Engine MODIS Google container runner image access entrypoint Docker

Override the entrypoint of an image

Introduced in GitLab and GitLab Runner 9.4. Read more about the extended configuration options.

Before explaining the available entrypoint override methods, let’s describe how the runner starts. It uses a Docker image for the containers used in the CI/CD jobs:

  1. The runner starts a Docker container using the defined entrypoint. The default from Dockerfile that may be overridden in the .gitlab-ci.yml file.
  2. The runner attaches itself to a running container.
  3. The runner prepares a script (the combination of before_scriptscript, and after_script).
  4. The runner sends the script to the container’s shell stdin and receives the output.

To override the entrypoint of a Docker image, define an empty entrypoint in the .gitlab-ci.yml file, so the runner does not start a useless shell layer. However, that does not work for all Docker versions.

  • For Docker 17.06 and later, the entrypoint can be set to an empty value.
  • For Docker 17.03 and earlier, the entrypoint can be set to /bin/sh -c/bin/bash -c, or an equivalent shell available in the image.

The syntax of image:entrypoint is similar to Dockerfile’s ENTRYPOINT.

Let’s assume you have a super/sql:experimental image with a SQL database in it. You want to use it as a base image for your job because you want to execute some tests with this database binary. Let’s also assume that this image is configured with /usr/bin/super-sql run as an entrypoint. When the container starts without additional options, it runs the database’s process. The runner expects that the image has no entrypoint or that the entrypoint is prepared to start a shell command.

With the extended Docker configuration options, instead of:

  • Creating your own image based on super/sql:experimental.
  • Setting the ENTRYPOINT to a shell.
  • Using the new image in your CI job.

You can now define an entrypoint in the .gitlab-ci.yml file.

For Docker 17.06 and later:

image:
  name: super/sql:experimental
  entrypoint: [""]

For Docker 17.03 and earlier:

image:
  name: super/sql:experimental
  entrypoint: ["/bin/sh", "-c"]

Define image and services in config.toml

Look for the [runners.docker] section:

[runners.docker]
  image = "ruby:latest"
  services = ["mysql:latest", "postgres:latest"]

The image and services defined this way are added to all jobs run by that runner.

Access an image from a private Container Registry

To access private container registries, the GitLab Runner process can use:

To define which option should be used, the runner process reads the configuration in this order:

  • DOCKER_AUTH_CONFIG CI/CD variable.
  • DOCKER_AUTH_CONFIG environment variable set in the runner’s config.toml file.
  • config.json file in $HOME/.docker directory of the user running the process. If the --user flag is provided to run the child processes as unprivileged user, the home directory of the main runner process user is used.

Requirements and limitations

  • Available for Kubernetes executor in GitLab Runner 13.1 and later.
  • Credentials Store and Credential Helpers require binaries to be added to the GitLab Runner $PATH, and require access to do so. Therefore, these features are not available on shared runners, or any other runner where the user does not have access to the environment where the runner is installed.

Use statically-defined credentials

There are two approaches that you can take to access a private registry. Both require setting the CI/CD variable DOCKER_AUTH_CONFIG with appropriate authentication information.

  1. Per-job: To configure one job to access a private registry, add DOCKER_AUTH_CONFIG as a CI/CD variable.
  2. Per-runner: To configure a runner so all its jobs can access a private registry, add DOCKER_AUTH_CONFIG as an environment variable in the runner’s configuration.

标签:Engine,MODIS,Google,container,runner,image,access,entrypoint,Docker
From: https://www.cnblogs.com/sdfasdf/p/16966075.html

相关文章

  • 重磅!涛思数据发布 TDengine PI 连接器
    ​​TDengine​​提供的混合解决方案,可以让企业既能保留传统的PI系统,又能轻松获得现代云平台提供的所有好处。涛思数据宣布发布TDenginePI连接器。在很多制造业企业中,......
  • TDengine PI 连接器发布——几次点击,让 PI System 数据轻松上云
    “TDengine提供的混合解决方案,可以让企业既能保留传统的PI系统,又能轻松获得现代云平台提供的所有好处”涛思数据宣布发布TDenginePI连接器。......
  • Google Guava提供的特殊的Table集合
    1、Table是个啥?是一个特殊的映射,其中两个键可以在组合的方式被指定为单个值。它类似于创建映射的映射。当你想使用多个键做索引的时候,你可能会用类似Map<rowKey,Map<c......
  • Google Chrome扩展程序的相对路径
    我正在开发GoogleChrome扩展程序,并且遇到了相对路径问题。如果我给出图像的相对路径并在某个页面中打开插件,它将在网站路径而不是扩展路径中查找该图像。有任何想法吗?......
  • 游戏引擎MiniEngine开发记录(一)
    游戏引擎MiniEngine开发记录(一)最近看了Youtube大神TheCherno的GameEngine系列,学习到了很多知识,但是作者前期做的很多工作后期都推翻重构了,很多地方写的也很乱,因此想从自......
  • 无法在Unreal Engine中使用C++创建Struct
    1)无法在UnrealEngine中使用C++创建Struct​2)Unreal中,如何在一个视口内显示多个摄像机视口3)如何能和UGUI里面的图片做个动画一直旋转,实现Loading效果4)UIToolkit中ListView......
  • Java—Google guava工具类(高效)快速入门指南
    Java—Googleguava工具类(高效)快速入门指南Googleguava工具类特点Guava是对JavaAPI的补充,对Java开发中常用功能进行更优雅的实现,使得编码更加轻松,代码容易理解。Guava......
  • shenyu2.5.0报错Expected a com.google.gson.JsonObject but was com.google.gson.Jso
    一、环境shenyu:2.5.0业务服务接入方式:httpshen-admin的数据数据同步方式:websocket二、异常描述当shenyu-admin启动或者业务服务注册到admin时,报错2022-10-1200:06:10[m......
  • 卷积神经网络模型之——GoogLeNet网络结构与代码实现
    文章目录​​GoogLeNet网络简介​​​​GoogLeNet网络结构​​​​Inception之前的几层结构​​​​Inception结构​​​​Inception3a模块​​​​Inception3b+MaxPool​......
  • 【最新】最全的Google镜像站地址
    写在前面遇到问题,有时光靠Baidu有时解决不了问题,所以需要求助Google,里面有好多国外网友的博客、StackoverFlow、GithubIssues、官方文档等等的大量一手英文资料,如果你想......