Giter Site home page Giter Site logo

gitlablearning's People

Contributors

xz1996 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gitlablearning's Issues

kubernetes executor

有没有碰到这种问题:
gitlab中添加Kubernetes,然后在k8s中安装gitlab-runner.

.gitlab-ci.yml

image: docker:latest
services:

  • docker:dind
    build:
    stage: build
    script:
    docker build -f Dockerfile .

Dockerfile:

FROM runtime
WORKDIR /app
EXPOSE 80

FROM sdk
WORKDIR /src

在k8s中,runner-gitlab-runner pod 会启动gitlab-runner-container-123,这时Dockerfile中的runtime和sdk image 会pull到gitlab-runner-container-123中,问题出来了,由于runtime与sdk image很大每次都要重新pull,因为gitlab-runner-container-123每次执行完就会pod删除了,有没有什么方法gitlab-runner-container-123中需要的image从宿主机直接共享。

之前单独在宿主中通过下面这种方试运行gitlab-runner,就可以直接共享宿主机的image
sudo docker run -d --name gitlab-runner --restart always
-v /srv/gitlab-runner/config:/etc/gitlab-runner
-v /var/run/docker.sock:/var/run/docker.sock
gitlab/gitlab-runner:latest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.