首页 > 其他分享 >vue+elementUI 使用腾讯地图

vue+elementUI 使用腾讯地图

时间:2022-12-09 03:55:05浏览次数:59  
标签:vue container elementUI 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.

标签:vue,container,elementUI,runner,image,access,entrypoint,腾讯,Docker
From: https://www.cnblogs.com/sdfasdf/p/16967910.html

相关文章

  • 【Vue】代理服务配置
     Springboot 后台接口地址基础路径配置:server:port:8080servlet:context-path:/demo完整路径:localhost:8080/demo Vue无代理服务......
  • #yyds干货盘点#vue框架computed的原理
    computed原理,首先得讲vue响应式原理,因为computed的实现是基于​​Watcher​​​对象的。那么vue的响应式原理是什么呢?众所周知,vue是基于​​Object.definePrope......
  • 爬取腾讯职位
    #coding=gbkimportrequestsfromlxmlimportetreeimporttime#每页的职位数PAGE_SIZE=10BASE_DOMAIN='https://hr.tencent.com/'HEADERS={"Use......
  • Vue滑块验证
    登陆时加入滑块验证1、在src\components新建SilderVerify\index.vue文件<template><divclass="silder-range":class="rangeStatus?'success':''"><i@mousedo......
  • vue实现自定义字体库
      先看效果是不是你所需要的,再看具体如何实现。   效果如下图所示:         有些字体需要下载,用图片就会变得很不清楚,这样我们就需要去下载字......
  • 腾讯地图坐标拾取器(自实现,可回调结果)
    简介腾讯地图坐标拾取器。基于腾讯地图API和Layui实现类似于微信小程序wx.getLocation(Objectobject)效果。演示JQ22GitHub(优先更新!)示例<!doctypehtml><......
  • Vue2.0 中使用Less
    第一步  npm安装lessnpminstalllessless-loader--save 第二步 修改webpack.base.conf.js文件,配置loader加载依赖,让其支持外部的less,在原来的代码上添加如下......
  • Vue刷新后页面数据丢失问题的解决过程
    OverridetheentrypointofanimageIntroducedinGitLabandGitLabRunner9.4.Readmoreaboutthe extendedconfigurationoptions.Beforeexplainingtheav......
  • vue3.0 父组件显示子组件中的echarts,同时保证宽高自适应。
    目录vue3.0父组件显示子组件中的echarts,同时保证宽高自适应。el-card控件中的echarts进行填充布局示例代码vue3.0父组件显示子组件中的echarts,同时保证宽高自适应。父......
  • vue常用依赖(一)vue-json-viewer展示JSON格式数据
    项目需求:将后台返回的字符串展示为Json格式且美化1.下载//Vue2npminstallvue-json-viewer@2--save//Vue3npminstallvue-json-viewer@3--save2.引入并全局注......