Skip to content

Commit 8c80eb0

Browse files
committed
big change
替换部分个性化路径和域名,增强通用性和可读性
1 parent 5f6c280 commit 8c80eb0

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

confluence/2.deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
value: root
3636
- name: RUN_GROUP
3737
value: root
38-
image: harbor.github.icu/peanut-public/confluence-server:8.5.2
38+
image: harbor.github.icu/public/confluence-server:8.5.2
3939
securityContext:
4040
privileged: true
4141
runAsUser: 0

confluence/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
若confluence使用ingress访问https形式,则为了避免登录confluence后总是出现`base url`的警告,可以先将server.xml的`confluence.example.net`域名改为你实际的域名
33
之后执行:
44
```
5-
docker build . -t harbor.github.icu/peanut-public/confluence-server:8.5.2
6-
docker push harbor.github.icu/peanut-public/confluence-server:8.5.2
5+
docker build . -t harbor.github.icu/public/confluence-server:8.5.2
6+
docker push harbor.github.icu/public/confluence-server:8.5.2
77
kubectl create configmap -n devops confluence-config --from-file=server.xml
88
kubectl apply -f .
99
```

hesk/1.deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: hesk
19-
image: harbor.github.icu/peanut-public/hesk:latest
19+
image: harbor.github.icu/public/hesk:latest
2020
securityContext:
2121
runAsUser: 0
2222
imagePullPolicy: IfNotPresent

hesk/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ hesk
1616

1717
## 使用方法
1818
```
19-
docker build . -t harbor.github.icu/peanut-public/hesk:latest
20-
docker push harbor.github.icu/peanut-public/hesk:latest
19+
docker build . -t harbor.github.icu/public/hesk:latest
20+
docker push harbor.github.icu/public/hesk:latest
2121
kubectl apply -f .
2222
```
2323

jenkins/jmx_exporter/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
--prefix=/
3434
--sessionTimeout=1440
3535
--sessionEviction=1440
36-
image: docker.github.icu/jenkins:2.415-jmx_0.19.0
36+
image: harbor.github.icu/jenkins:2.415-jmx_0.19.0
3737
securityContext:
3838
runAsUser: 0
3939
imagePullPolicy: IfNotPresent

jenkins/jmx_exporter/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
- 1.构建镜像
44
```
5-
docker build . -t docker.github.icu/jenkins:2.415-jmx_0.19.0
5+
docker build . -t harbor.github.icu/jenkins:2.415-jmx_0.19.0
66
```
77

88
- 2.上传镜像到私有仓库
99
```
10-
docker push docker.github.icu/jenkins:2.415-jmx_0.19.0
10+
docker push harbor.github.icu/jenkins:2.415-jmx_0.19.0
1111
```
1212

1313
- 3.创建jmx配置文件configmap

jenkins/readme.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ mfsseteattr -f nodatacache <jenkins-pv挂载路径>/jobs -r
99
## 若想用jdk 1.8部署低版本jenkins
1010
- 1.下载jdk1.8安装包
1111
```
12-
wget -c https://nexus.example.com/repository/peanut/jdk/install-java.sh -P jdk/
13-
wget -c https://nexus.example.com/repository/peanut/jdk/jdk-8u201-linux-x64.tar.gz -P jdk/
12+
wget -c https://nexus.github.icu/repository/jdk/install-java.sh -P jdk/
13+
wget -c https://nexus.github.icu/repository/jdk/jdk-8u201-linux-x64.tar.gz -P jdk/
1414
```
1515

1616
- 2.准备Dockerfile重新编译jenkins镜像:
@@ -31,20 +31,20 @@ USER jenkins
3131

3232
- 3.开始构建新镜像
3333
```
34-
docker build . -t docker.example.com/jenkins:2.356-jdk8
34+
docker build . -t harbor.github.icu/jenkins:2.356-jdk8
3535
```
3636

3737
- 4.登录私有仓库
3838
```
39-
docker login docker.example.com
39+
docker login harbor.github.icu
4040
```
4141

4242
- 5.上传私有镜像
4343
```
44-
docker push docker.example.com/jenkins:2.356-jdk8
44+
docker push harbor.github.icu/jenkins:2.356-jdk8
4545
```
4646

47-
- 6.修改`5.deployment.yaml`中的镜像地址为`docker.example.com/jenkins:2.356-jdk8`
47+
- 6.修改`5.deployment.yaml`中的镜像地址为`harbor.github.icu/jenkins:2.356-jdk8`
4848

4949
- 7.部署jenkins
5050
```

monitoring/alertmanager/1.configmap.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ data:
4545
group_wait: 3m
4646
group_interval: 5m
4747
repeat_interval: 24h
48-
receiver: 'peanut'
48+
receiver: 'test'
4949
routes:
5050
- receiver: "webhook"
5151
match_re: { level: "(.*)?P([0-3].*)?" }
5252
continue: true
5353
5454
receivers:
55-
- name: 'peanut'
55+
- name: 'test'
5656
- name: 'webhook'
5757
webhook_configs:
58-
- url: 'https://prometheusalert.github.icu/prometheusalert?type=fs&tpl=prometheus-peanut&fsurl=https://open.feishu.cn/open-apis/bot/v2/hook/xxxx-xxxx-xxxx-xxxx-xxxx'
58+
- url: 'https://prometheusalert.github.icu/prometheusalert?type=fs&tpl=prometheus-test&fsurl=https://open.feishu.cn/open-apis/bot/v2/hook/xxxx-xxxx-xxxx-xxxx-xxxx'
5959
send_resolved: true

monitoring/grafana/1.configmap.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ data:
122122
start_tls = false
123123
ssl_skip_verify = false
124124
125-
bind_dn = "cn=public,ou=peanut,dc=github,dc=icu"
125+
bind_dn = "cn=public,ou=users,dc=github,dc=icu"
126126
bind_password = '123456'
127127
128128
search_filter = "(sAMAccountName=%s)"

monitoring/sonar-exporter/akawork/2.deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
value: admin
2424
- name: SONAR_PASSWORD
2525
value: "123456"
26-
image: harbor.github.icu/peanut-public/akaword/sonar-exporter:latest
26+
image: harbor.github.icu/public/akaword/sonar-exporter:latest
2727
imagePullPolicy: IfNotPresent
2828
livenessProbe:
2929
failureThreshold: 5

script/docker-proxy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
src_image=$1
33
docker pull ${src_image}
44
image=`echo ${src_image} | awk -F / '{print $NF}'`
5-
dest_image=docker.github.icu/${image}
5+
dest_image=harbor.github.icu/${image}
66
docker tag ${src_image} ${dest_image}
7-
docker login --username=admin --password=admin docker.github.icu
7+
docker login --username=admin --password=admin harbor.github.icu
88
docker push ${dest_image}
99
echo -e "\ndocker pull ${dest_image}"

0 commit comments

Comments
 (0)