首页 > 其他分享 >vue使用高德地图,marker低于1000,滑动卡顿问题的探究(已解决)

vue使用高德地图,marker低于1000,滑动卡顿问题的探究(已解决)

时间:2022-12-10 20:45:52浏览次数:150  
标签:vue runner image access entrypoint user marker 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,runner,image,access,entrypoint,user,marker,Docker,高德
From: https://www.cnblogs.com/sdfasdf/p/16972270.html

相关文章

  • 05 Vue-cli项目安装和配置
    第一步:使用管理员身份运行命令提示符,并进入所要创建vue的文件夹中 第二步:创建vue-cli,选择vue3①使用vuecreatevuedemo01,进入创建项 ②选择vue3,并进入项目中......
  • vue中调用方法返回函数类型
    刚学习vue是用2.x版本的,学vue3.x版本后,把选项卡类型methods方法写入到setup()函数中,在vue2定义的方法是这样的:loadAll(){},到了setup中变成了constloadAll=()=>{}......
  • Vue2(笔记31) - 脚手架 - scoped
    scoped样式的作用域,每个组件都有独立的样式,最终都会打包合并,难免会重名导致页面样式混乱,可以给每个组件的样式加上scoped 限定样式的作用域只限于当前组件;改下school.vue......
  • 【786】folium修改marker显示图标
    参考:AddingmultipleCustomIconinFolium需要注意的是,如果多个点,每次都要创建一次,因此放在for循环内部!代码:importfoliumm=folium.Map(location=[20,0],......
  • 03 Component name "content" should always be multi-word vue/multi-word-componen
    错误截图 解决办法:在文件vue.config.js中添加lintOnSave:false如图所示:  这样就能解决了......
  • Blazor和Vue对比学习(进阶.路由导航三):代码导航
    导航除了使用组件外(Blazor使用NavLink,Vue使用router-link或RouterLink),更多的时候,主要还是使用代码进行导航,更加灵活。Blazor提供了 NavigationManager对象,可以在代码层进......
  • 02 安装vue-router的过程中报错
    错误截图:使用两种加载vue-router的方法 解决办法:输入:npminstall--legacy-peer-depsvue-router--save-dev 至于原因吗,暂时不知道,以后遇到这种vue-router加载不......
  • [Vue3-14]父子组件数据传递
    1.父组件传递子组件2.子组件传递父组件......
  • 01 Vue创建项目并运行
    根据vue-cli中文官网进行操作第一步:以管理员身份运行cmd,并查看vue-cli的版本 第二步:创建文件夹,目录移动到创建的文件夹中创建的文件夹cmd中的目录指定到上面的文件......
  • Blazor和Vue对比学习(进阶.路由导航二):布局(母版/嵌套)
    单文件组件框架中,当更改请求地址时,并不会引发页面跳转,而是由框架捕获请求地址(在框架中我们称之为路由),然后根据路由与组件的映射关系,在页面的指定位置切换和显示组件。在哪......