xz1996 / gitlablearning Goto Github PK
View Code? Open in Web Editor NEWThis is the repository for my GitLab learning.
This is the repository for my GitLab learning.
有没有碰到这种问题:
gitlab中添加Kubernetes,然后在k8s中安装gitlab-runner.
.gitlab-ci.yml
image: docker:latest
services:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.