Skip to content

Commit fd3bded

Browse files
committed
Update 31.07.2023 - 1
1 parent 3bf9990 commit fd3bded

File tree

82 files changed

+25988
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+25988
-2
lines changed

dockerhub/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
В эту папку ложите все артефакты DockerHub
1+
# private-docker-registry
2+
3+
Docker-compose манифест для разворачивания приватного Docker Registry (Работает на k8s-docker-hub)

dockerhub/data/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
data folder

haproxy/haproxy.cfg.example2

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
global
2+
# nbproc 4
3+
# cpu-map 1 0
4+
# cpu-map 2 1
5+
# cpu-map 3 2
6+
# cpu-map 4 3
7+
maxconn 150000
8+
log /dev/log local0
9+
log /dev/log local1 notice
10+
# chroot /var/lib/haproxy
11+
stats timeout 30s
12+
user root
13+
group root
14+
daemon
15+
tune.ssl.cachesize 1000000
16+
pidfile /var/run/haproxy.pid
17+
stats socket /var/run/haproxy.sock mode 777 level admin expose-fd listeners
18+
# stats bind-process 1
19+
20+
defaults
21+
maxconn 50000
22+
log global
23+
mode http
24+
option dontlognull
25+
timeout connect 50000
26+
timeout client 500000
27+
timeout server 500000
28+
29+
frontend stats
30+
bind *:8404
31+
option http-use-htx
32+
http-request use-service prometheus-exporter if { path /metrics }
33+
stats enable
34+
stats uri /stats
35+
stats refresh 10s
36+
37+
frontend stat-1
38+
bind *:9001
39+
mode http
40+
# bind-process 1
41+
stats enable
42+
stats uri /haproxy?stats
43+
stats realm Haproxy\ Statistics
44+
stats auth howtoforge:howtoforge #User and Password for login to the monitoring dashboard
45+
stats admin if TRUE
46+
47+
frontend http_front
48+
maxconn 50000
49+
bind *:80
50+
mode http
51+
option forwardfor except 127.0.0.0/8
52+
default_backend http_back
53+
54+
backend http_back
55+
balance roundrobin
56+
mode http
57+
server main-p01 192.168.88.19:80
58+
server main-p02 192.168.88.22:80
59+

jenkins/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '3.7'
22
services:
33
jenkins:
44
image: jenkins/jenkins:2.321
5+
# build: .
56
privileged: true
67
user: root
78
restart: always

jenkins/jenkins/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM jenkins/jenkins:lts
2+
COPY --chown=jenkins:jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt
3+
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

jenkins/jenkins/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
В эту папку ложите все артефакты Jenkins

jenkins/jenkins/plugins.txt

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
ace-editor:1.1
2+
role-strategy:3.1
3+
workflow-cps:2.80
4+
build-timeout:1.19.1
5+
database:1.7
6+
mstest:1.0.0
7+
structs:1.20
8+
sonar:2.11
9+
jquery-detached:1.2.1
10+
workflow-support:3.4
11+
pipeline-model-api:1.6.0
12+
pipeline-build-step:2.12
13+
plain-credentials:1.7
14+
authentication-tokens:1.3
15+
nuget:1.0
16+
git:4.2.2
17+
external-monitor-job:1.7
18+
artifactdeployer:1.2
19+
mailer:1.30
20+
resource-disposer:0.14
21+
docker-build-publish:1.3.2
22+
github:1.30.0
23+
bitbucket-build-status-notifier:1.4.2
24+
command-launcher:1.4
25+
envinject:2.3.0
26+
jackson2-api:2.10.3
27+
database-postgresql:1.2
28+
workflow-step-api:2.22
29+
multiple-scms:0.6
30+
text-file-operations:1.3.2
31+
github-api:1.106
32+
allure-jenkins-plugin:2.28.1
33+
bouncycastle-api:2.18
34+
workflow-job:2.38
35+
email-ext:2.69
36+
matrix-auth:2.5
37+
trilead-api:1.0.6
38+
ant:1.11
39+
jdk-tool:1.4
40+
pam-auth:1.6
41+
javadoc:1.6
42+
ws-cleanup:0.38
43+
pipeline-input-step:2.11
44+
scm-api:2.6.3
45+
workflow-basic-steps:2.19
46+
powershell:1.4
47+
workflow-api:2.40
48+
durable-task:1.34
49+
pipeline-rest-api:2.13
50+
ldap:1.22
51+
pipeline-model-definition:1.6.0
52+
pipeline-stage-tags-metadata:1.6.0
53+
mapdb-api:1.0.9.0
54+
git-server:1.9
55+
display-url-api:2.3.2
56+
workflow-multibranch:2.21
57+
envinject-api:1.7
58+
subversion:2.13.1
59+
ssh-slaves:1.31.1
60+
token-macro:2.12
61+
Office-365-Connector:4.13.0
62+
apache-httpcomponents-client-4-api:4.5.10-2.0
63+
cloudbees-bitbucket-branch-source:2.8.0
64+
pipeline-graph-analysis:1.10
65+
junit:1.28
66+
workflow-scm-step:2.10
67+
windows-slaves:1.6
68+
handlebars:1.1.1
69+
gradle:1.36
70+
wix:1.12
71+
ruby-runtime:0.12
72+
pipeline-model-declarative-agent:1.1.1
73+
timestamper:1.11.2
74+
msbuild:1.29
75+
workflow-cps-global-lib:2.16
76+
pipeline-github-lib:1.0
77+
bitbucket-pullrequest-builder:1.5.0
78+
pipeline-stage-step:2.3
79+
ssh-credentials:1.18.1
80+
branch-api:2.5.5
81+
momentjs:1.1.1
82+
git-client:3.2.1
83+
credentials-binding:1.21
84+
pipeline-milestone-step:1.3.1
85+
thinBackup:1.10
86+
jsch:0.1.55.2
87+
pipeline-utility-steps:2.6.1
88+
stashNotifier:1.20
89+
bitbucket:1.1.25
90+
lockable-resources:2.7
91+
workflow-durable-task-step:2.35
92+
github-branch-source:2.6.0
93+
docker-commons:1.16
94+
matrix-project:1.14
95+
pipeline-model-extensions:1.6.0
96+
docker-workflow:1.23
97+
script-security:1.71
98+
mercurial:2.10
99+
handy-uri-templates-2-api:2.1.8-1.0
100+
antisamy-markup-formatter:2.0
101+
workflow-aggregator:2.6
102+
pipeline-stage-view:2.13
103+
cloudbees-folder:6.11.1
104+
credentials:2.3.5

jmeter/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.jtl
2+
*.log

jmeter/README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Контейнер для нагрузочного тестирования
2+
3+
## Запуск
4+
5+
* Откорректировать файл с тестовым заданием (test1.jmx)
6+
Это XML файл. Что пока понятно:
7+
8+
1. ThreadGroup.num_threads - количество потоков
9+
10+
2. ThreadGroup.ramp_time - время разгона
11+
12+
3. HTTPSampler - свойства точки подключения (domain,port,protocol (HTTP, HTTPS),path (роут относительно корня), method (GET, POST).
13+
14+
* docker-compose up (В detach режиме: docker-compose up -d).
15+
16+
## Остановка
17+
18+
[Ctrl + D] или docker-compose down (В detach режиме)
19+
20+
## Результат
21+
* result.jtl - Результат сканирования (По сути CSV файл. Разделитель запятая. Первая строчка описания полей)
22+
* *.log - какие-то логи Java и самого Jmeter (Сильно не ковырялся)
23+
24+
## Планы развития
25+
* Более подробно изучить файл test1.jmx. Сделать кейсы дл самых базовых и основных вариантов тестрования инфраструктуры.
26+
* Разобраться как собирается образ egaillardon/jmeter-plugins (Базовый образ, какие слои, схема сборки, параметры). Чтобы была возможность влиять на схему и параметры сборки в зависимости от задачи.
27+
28+

jmeter/docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '3.6'
2+
3+
services:
4+
jmeter-app1:
5+
image: egaillardon/jmeter-plugins
6+
volumes:
7+
- ./:/jmeter
8+
environment:
9+
JVM_ARGS: -Xms10240m -Xmx10240m
10+
extra_hosts:
11+
- rancher-dev2.store-plus.atbmarket.com:10.0.9.39
12+
command: "--nongui --testfile test1.jmx --logfile result.jtl"
13+
14+

0 commit comments

Comments
 (0)