Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e2bfe5de51 | ||
|
10379acf6f | ||
|
bf15f643c7 | ||
|
b33711c33d |
@ -2,11 +2,11 @@
|
||||
|
||||
## Présentation
|
||||
|
||||
Le script ''install-jenkins'' installe l'application CI/CD **jenkins** sur Debian 12 avec openJDK 17 à partir du dépot jenkins.
|
||||
Le script **install-jenkins.sh** installe l'application CI/CD **jenkins** sur Debian 12 avec openJDK 17 à partir du dépot jenkins.
|
||||
|
||||
Il installe lesapplication **git** et **ansible**.
|
||||
Il installe également les applications **git** et **ansible**.
|
||||
|
||||
Jenkins est accessible sur le port 8080
|
||||
|
||||
Le script fonctione sur une VM KVM ou sur un conteneur LXC.
|
||||
Le script fonctionne sur une VM KVM ou sur un conteneur LXC.
|
||||
|
||||
|
9
jenkins/jenkins-proxy.d2
Normal file
9
jenkins/jenkins-proxy.d2
Normal file
@ -0,0 +1,9 @@
|
||||
direction: right
|
||||
client.shape: cloud
|
||||
client -> jenkins: " :443"
|
||||
jenkins: {
|
||||
caddy
|
||||
jenkins
|
||||
caddy -> jenkins: ":8080"
|
||||
}
|
||||
|
11
jenkins/provision/Caddyfile
Normal file
11
jenkins/provision/Caddyfile
Normal file
@ -0,0 +1,11 @@
|
||||
192.168.1.30:443 {
|
||||
tls internal
|
||||
reverse_proxy localhost:8080
|
||||
}
|
||||
|
||||
jenkins:443 {
|
||||
tls internal
|
||||
reverse_proxy localhost:8080
|
||||
}
|
||||
|
||||
|
6
jenkins/provision/install-caddy.sh
Normal file
6
jenkins/provision/install-caddy.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y caddy
|
||||
|
||||
|
@ -3,8 +3,9 @@
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gnupg openjdk-17-jdk
|
||||
|
||||
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
|
||||
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
|
||||
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null
|
||||
|
||||
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y jenkins
|
||||
|
@ -5,5 +5,10 @@ sudo apt-get update
|
||||
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20250203210304.0.0_amd64.deb -O minio.deb
|
||||
sudo dpkg -i minio.deb
|
||||
|
||||
|
||||
sudo groupadd -r minio
|
||||
sudo useradd -M -r -g minio minio
|
||||
|
||||
|
||||
echo -e "mkdir ~/minio\nminio server ~/minio --console-address :9001"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user