-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft PR for review comments of infraclouds contributions #2
base: infracloud/cassandra-5.0
Are you sure you want to change the base?
Changes from 250 commits
7d2b552
c337a82
96799ad
b90db0a
9e0848e
9d5c38e
6a1cdf6
66b153d
c0b12dc
9f86207
fae1c01
0a5f6af
be11cf6
f4b7897
f5e1ae1
82a1589
f61f449
e1f2333
bb28801
e2cbcbe
108d2b0
24fb78d
ecd22b2
3b5eb23
6ac257f
647c1c1
fcf2a7c
f60f1e8
9e0633f
1556417
7e0d4aa
7f0b241
10d6323
e5565f4
cb2a0b7
2e8d9e1
ae5c475
fdbf9cf
ac463d7
fa3f81a
d7b7e4d
446ca14
58c36f6
431385f
379d325
f1dbace
dcb8726
faac81a
99cc876
61bcad7
82224fe
3051892
499af2f
13ff92f
23bb558
d951683
68df97f
c3830b3
218e983
217c0c3
bbcb26d
08ee5d4
87fb545
1626567
9b10365
006c593
2bff62b
7c48fe3
d486827
245ed22
7b3b36a
2fb9d30
65a8835
bd837ed
886d7eb
c28eb0a
bcba87d
0111793
1e595bc
09283df
c341abc
ec091fe
3d6e2bd
078ca8e
395b9be
f2a2504
ed247ae
059b2c7
fbbbbe4
d6ec04d
0f3e13e
04dde10
62909cb
4ff1bce
0bc5d09
d603628
6e8efd9
c95bd00
5cf5a81
7bd388f
b73b5d0
1adb11c
63694b5
d5db683
e5c45fc
b978768
08189f1
5ca5833
7d35fb3
bafeb6c
b7405df
8e3ffd1
c6ede46
aef256f
3f37ec5
ffd55f6
7e68e82
7de2a55
17a797d
5c0ac21
1753aa3
4148183
ff86cf1
68dceab
7d900e8
291c042
729f8cd
b5adf2f
d822ffe
5cfd2a9
83ba764
1862029
a171ab4
c2d0643
8b2c14d
d08eded
6d9b24e
7cf493c
8b3eb0d
8165818
c2ef545
17e1e36
6e094ac
bc787be
5b0a0d9
0445a3e
9b51d62
77e3f44
420232f
e957b1a
579b71b
0ee7f7a
8801460
704b80f
0c3d81a
b380716
d34b6de
517f17b
9b2d1f1
9b4980c
546cf95
2109074
84e6595
2207f9f
fe31a27
18295df
b4cbd6a
ad4d06a
3f99f2f
d98613e
3d97537
98c3ede
c3a1a32
a59258b
8da7257
1942c8d
d87111d
9112b04
238b21d
46838ce
392c486
837df0b
6ac16ab
385eaec
b0f4083
baa58fd
668755b
dd547a6
dd34428
e8377c8
9549f12
3f33e1f
ebd05b3
159e867
ae5fb90
a2f5fe7
4a42255
b77830b
90937ff
ebb332f
37d4a19
b961834
3c5840e
38eadd2
68ededd
6ab307d
7dfb474
5a88e4f
7060a8d
fb4122b
d37ffb8
7773805
d5c0e25
015c9e5
c9328f9
20eb15a
b2e3ab0
c2974b6
b1faf35
d43af09
2a3d6c2
13b89a5
4f9f82d
45d8aa2
88ad70c
1862109
d6ee789
acaed3e
d84b73b
38c27a1
d714963
3e94a1c
93482ef
a3f7b1a
2bfe665
be5f02e
49c15df
742e923
b696aee
b8f9e3a
9d1765c
3490fdd
80a2e43
fa39706
653e3b1
6d47a1e
c0572a2
7613a52
2b89e51
3710ca5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Use Alpine Linux as the base image | ||
FROM jenkins/inbound-agent:3148.v532a_7e715ee3-4 | ||
|
||
USER root | ||
RUN apt-get update | ||
RUN apt-get install xz-utils -y | ||
RUN apt-get install bc -y | ||
RUN apt-get update | ||
RUN apt-get install coreutils -y | ||
RUN apt-get update && apt-get install -y sudo | ||
|
||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install -y openjdk-11-jdk openjdk-17-jdk && \ | ||
update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java && \ | ||
update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac && \ | ||
update-alternatives --install /usr/local/bin/jdk_11 java /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1 && \ | ||
update-alternatives --install /usr/local/bin/jdk_17 java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1 | ||
|
||
# Install Docker | ||
RUN apt-get install -y gnupg | ||
# Install Docker for Debian Bullseye | ||
RUN apt-get update && \ | ||
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release && \ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ | ||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \ | ||
apt-get update && \ | ||
apt-get install -y docker-ce docker-ce-cli containerd.io | ||
|
||
|
||
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins | ||
#VOLUME /var/run/docker.sock | ||
RUN usermod -aG docker jenkins | ||
#RUN chown -R 1000:1000 /var/run/docker.sock | ||
|
||
USER jenkins | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this file belongs under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As we have run-ci.sh script file under .build and this script file is using the jenkins-deployment.yaml file, so we placed it in the same dir. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please put under |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: jenkins-operator-user-configuration | ||
data: | ||
1-system-message.yaml: | | ||
tool: | ||
jdk: | ||
installations: | ||
- name: jdk_11_latest | ||
home: "/usr/bin/jdk_11/bin/java" | ||
- name: jdk_17_latest | ||
home: "/usr/bin/jdk_17/bin/java" | ||
--- | ||
apiVersion: jenkins.io/v1alpha2 | ||
kind: Jenkins | ||
metadata: | ||
name: example | ||
spec: | ||
configurationAsCode: | ||
configurations: | ||
- name: jenkins-operator-user-configuration | ||
secret: | ||
name: "" | ||
groovyScripts: | ||
configurations: [] | ||
secret: | ||
name: "" | ||
service: | ||
type: ClusterIP | ||
port: 8080 | ||
jenkinsAPISettings: | ||
authorizationStrategy: createUser | ||
master: | ||
plugins: | ||
- name: ws-cleanup | ||
version: "0.45" | ||
- name: javadoc | ||
version: "243.vb_b_503b_b_45537" | ||
- name: description-setter | ||
version: "1.10" | ||
- name: throttle-concurrents | ||
version: "2.14" | ||
- name: test-stability | ||
version: "2.3" | ||
- name: postbuildscript | ||
version: "3.2.0-550.v88192b_d3e922" | ||
- name: github | ||
version: "1.37.3" | ||
- name: timestamper | ||
version: "1.26" | ||
- name: openJDK-native-plugin | ||
version: "1.7" | ||
basePlugins: | ||
- name: kubernetes | ||
version: "4029.v5712230ccb_f8" | ||
- name: workflow-job | ||
version: "1342.v046651d5b_dfe" | ||
- name: workflow-aggregator | ||
version: "596.v8c21c963d92d" | ||
- name: git | ||
version: "5.2.0" | ||
- name: job-dsl | ||
version: "1.84" | ||
- name: configuration-as-code | ||
version: "1700.v6f448841296e" | ||
- name: kubernetes-credentials-provider | ||
version: "1.225.v14f9e6b_28f53" | ||
disableCSRFProtection: false | ||
containers: | ||
- name: jenkins-master | ||
image: jenkins/jenkins:2.414.1-lts-jdk11 | ||
# env: | ||
# - name: JAVA_OPTS | ||
# value: "-Dhudson.cli.CLI.HTTPS=true -Djenkins.websocket=false" | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
failureThreshold: 12 | ||
httpGet: | ||
path: /login | ||
port: http | ||
scheme: HTTP | ||
initialDelaySeconds: 100 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
readinessProbe: | ||
failureThreshold: 10 | ||
httpGet: | ||
path: /login | ||
port: http | ||
scheme: HTTP | ||
initialDelaySeconds: 80 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
limits: | ||
cpu: 1500m | ||
memory: 3Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
securityContext: | ||
fsGroup: 1000 | ||
runAsUser: 1000 | ||
seedJobs: | ||
- id: jenkins-operator | ||
targets: ".jenkins/job/DslJob.jenkins" | ||
description: "Casandra Repo" | ||
repositoryBranch: "infracloud/cassandra-5.0" | ||
repositoryUrl: "https://github.com/infracloudio/cassandra.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this file be under
.jenkins/
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it is a docker file, we placed it under the docker dir. If required we can move it under .jenkins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.jenkins/k8s/
is best, and this relates to first jenkins and second k8s based jenkins.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done