![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
devops
菜鸟aidamo
超级菜菜菜鸟
展开
-
基于kratos框架 gitlab-ci.yml 容器ci实践
项目中的dockerfile FROM golang:1.16 AS builder COPY . /src WORKDIR /src RUN GOPROXY=https://goproxy.cn make build from alpine:latest #时区 USER root COPY --from=builder /src/bin /app WORKDIR /app RUN mkdir -p /tmp/ds EXPOSE 8000 EXPOSE 9000 VOLUME /data原创 2021-10-03 15:32:28 · 226 阅读 · 0 评论 -
基于docker gitlab/gitlab-runner
一、安装gitlab(尽量使用80端口) docker pull gitlab/gitlab-ce:latest docker 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 · 161 阅读 · 0 评论 -
devops(gitlab-ci部署与应用)
安装目录 /app/gitlab-ee /app/gitlab-runner 安装gitlab-ee cd /app/gitlab-ee sudo 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 · 257 阅读 · 0 评论