首页 > 其他分享 >安卓GB28181云台控制和预置位查询

安卓GB28181云台控制和预置位查询

时间:2022-12-10 16:35:39浏览次数:78  
标签:预置 container GB28181 安卓 access runner entrypoint Docker image

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.

标签:预置,container,GB28181,安卓,access,runner,entrypoint,Docker,image
From: https://www.cnblogs.com/sdfasdf/p/16971783.html

相关文章

  • ReactNative MacOS环境初始化项目(安卓)
    MacOS12.6.1官方文档英文https://reactnative.dev/docs/environment-setup中文https://www.react-native.cn/docs/environment-setup相关文档ReactNativeMac......
  • 安卓APP源码和设计报告——麻雀笔记
    OverridetheentrypointofanimageIntroducedinGitLabandGitLabRunner9.4.Readmoreaboutthe extendedconfigurationoptions.Beforeexplainingtheav......
  • 安卓各大应用商店上架注意事项汇总
    安卓上架注意事项1、上架前设置处的隐私政策和用户协议、以及弹窗都加上,类似如下图:注意:必须做成先同意隐私政策弹窗,再申请获取用户个人信息2、登录或者注册页面加上隐私政......
  • 安卓APP源码和设计报告——智能垃圾桶
    OverridetheentrypointofanimageIntroducedinGitLabandGitLabRunner9.4.Readmoreaboutthe extendedconfigurationoptions.Beforeexplainingtheav......
  • 关于手机24小时插电鼓包问题,安卓电池充电保护-智能充电/温控切断(Root方案)
    我手机电池已经鼓包了,为了以后换了新电池能够持久续航,我给手机装了AdvancedChargingController充电控制模块(简称acc)手机需要root(我用的是magisk)下载acc模块(有出国方式的......
  • 使用IDEA 进行 安卓开发
    OverridetheentrypointofanimageIntroducedinGitLabandGitLabRunner9.4.Readmoreaboutthe extendedconfigurationoptions.Beforeexplainingtheav......
  • 安卓APP源码和设计报告——健身系统
    一、设计背景1.需求分析对于很多人来说拥有一副好身材能让自己增添不少魅力;对于爱吃而又担心自己发胖的人来说适当的运动健身是最好的选择。移动互联网时代,市场上“约跑”......
  • 安卓APP源码和设计报告——小说阅读器
    班级姓名学号答辩情况考核项满分成绩得分掌握计算机系统软硬件资源管理的原理,能够设计针对计算机领域复杂工程问题的解决方案,设计满足特定需求的软硬件系统,并具有对解决方......
  • 安卓的启动activity
    一、关于安卓的启动1、安卓的一个主要的xml配置文件是:AndroidManifest.xml该文件放在应用的根目录,那么具体根目录是哪里需要根据各个项目去确定(不是工程的根目录,可能是对......
  • 安卓APP源码和设计报告——运动健身教学
    实验报告课程名称实验名称指导教师专业班级学号姓名目录一、设计背景31.需求分析32.课题研究的目的和意义3二、系统需求分析与开发环境31.系统功能需求32.系统界面需......