devops
菜鸟aidamo
超级菜菜菜鸟
展开
-
基于kratos框架 gitlab-ci.yml 容器ci实践
项目中的dockerfileFROM golang:1.16 AS builderCOPY . /srcWORKDIR /srcRUN GOPROXY=https://goproxy.cn make buildfrom alpine:latest#时区USER rootCOPY --from=builder /src/bin /appWORKDIR /appRUN mkdir -p /tmp/dsEXPOSE 8000EXPOSE 9000VOLUME /data原创 2021-10-03 15:32:28 · 265 阅读 · 0 评论 -
基于docker gitlab/gitlab-runner
一、安装gitlab(尽量使用80端口)docker pull gitlab/gitlab-ce:latestdocker run -itd -e TZ="Asia/Shanghai" -p 8083:80 -p 8082:443 -p 8084:22 -v /opt/gitlab/config:/etc/gitlab -v /opt/gitlab/logs:/var/log/gitlab -v /opt/gitlab/data:/var/docker/gitlab --name=gitlab .原创 2021-10-03 15:23:20 · 181 阅读 · 0 评论 -
devops(gitlab-ci部署与应用)
安装目录/app/gitlab-ee /app/gitlab-runner安装gitlab-eecd /app/gitlab-eesudo docker run --detach \--name gitlab \--hostname gitlab.example.com \--publish 11443:443 --publish 1180:80 --publish 1122:22 \--restart always \--volume $(pwd)/config:/etc/原创 2021-04-05 03:04:59 · 276 阅读 · 0 评论