randyou / randyou.github.io Goto Github PK
View Code? Open in Web Editor NEWBlog
Home Page: https://randyou.github.io
Blog
Home Page: https://randyou.github.io
https://randyou.github.io/2020/07/07/gitlab-jenkins-harbor-k8s/
CI/CD 流程图前提环境已有 Gitlab已有 Jenkins已有 Harbor已有 K8S如果还没有以上的环境,先自行搭建。在 Harbor 中新建一个项目用来管理前端镜像新建 fe 项目进入 fe 项目,新建机器人账号保存令牌信息,将其配置到 Jenkins 中(略)准备一个 Web 项目使用 create-react-app 创建一个 React App,这里就叫 my-app步骤参考 h
https://randyou.github.io/2020/06/16/k8s-pull-from-harbor/
创建机器人账户,用来给 k8s 从一个私有项目拉取镜像登录 Harbor进入一个私有项目点击机器人账户页签,添加一个机器人账号输入名称如 test,可以勾选永不过期,权限只需要拉取权限就够了,保存保存后生成一个为 robot$test 的机器人账号和对应的令牌,保存成文件待用。创建 imagePullSecrets方式一:使用命令直接创建harbor-registry-key 是要创建的 secr
https://randyou.github.io/2020/06/13/dockerfile-memo/
使用多阶段构建多阶段构建有效使用镜像层级缓存,加快构建速度 优先添加变化频率更低的文件,提升缓存命中率 最终镜像中不包含构建阶段使用的工具,大量减小镜像体积 使用更小的基础镜像更小的基础镜像有效节省大量磁盘空间,提高传输效率 使用 alpine 文件系统通常能获得更小的镜像 example12345678910111213FROM node:alpine AS builderWORKDIR &
https://randyou.github.io/2020/06/16/harbor-install/
准备阶段开启 80、443、4443 端口当然你也可以选择关掉防火墙 12345firewall-cmd --zone=public --add-port=80/tcp --permanentfirewall-cmd --zone=public --add-port=443/tcp --permanentfirewall-cmd --zo
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.