services: delete jenkins

This commit is contained in:
tylen 2025-03-23 22:28:18 +00:00
parent fe9b77875a
commit d22a531c89
8 changed files with 0 additions and 105 deletions

View File

@ -1,2 +0,0 @@
APPS_JENKINS=/home/${USER}/remote-apps/jenkins
JENKINS_EXT_ADDRESS="192.168.100.30:4456"

View File

@ -1,13 +0,0 @@
FROM jenkins/jenkins:2.479.3-jdk17
USER root
RUN apt-get update && apt-get install -y lsb-release
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
COPY plugins.txt /var/jenkins_home/plugins.txt
RUN jenkins-plugin-cli --plugin-dir /var/jenkins_home/plugins --plugins $(cat /var/jenkins_home/plugins.txt)

View File

@ -1,43 +0,0 @@
#!/usr/bin/env groovy
package modules
import javaposse.jobdsl.dsl.Job
public class Utils {
static Job createJob(
String jobName,
String jobDescription,
jobDslCtx
) {
Job job = jobDslCtx.pipelineJob(jobName)
job.with {
description(jobDescription)
}
return job
}
static void addGiteaRepository(
Job job,
String giteaRepositoryURL,
String jenkinsFilePath
) {
job.with {
definition {
cpsScm {
lightweight(false)
scm {
git {
branch('main')
remote {
url(giteaRepositoryURL)
credentials('77c771b9-20f4-426d-8f1e-ed901afe9eb9')
}
}
}
scriptPath(jenkinsFilePath)
}
}
}
}
}

View File

@ -1,18 +0,0 @@
#!/usr/bin/env groovy
import javaposse.jobdsl.dsl.Job
import modules.Utils
void createSeed() {
String jobName = 'seed'
String jobDescription = 'This job creates all other jobs'
String jenkinsFile = 'services/jenkins/ci/pipelines/seed.groovy'
String repoUrl = 'https://git.tylencloud.com/tylen/andromeda-setup'
Job job = Utils.createJob(jobName, jobDescription, this)
Utils.addGiteaRepository(
job,
repoUrl,
jenkinsFile
)
}

View File

@ -1,21 +0,0 @@
version: '3'
services:
jenkins-docker:
build:
context: .
dockerfile: Dockerfile
container_name: jenkins-docker
restart: unless-stopped
privileged: true
environment:
- DOCKER_TLS_CERTDIR=/certs
volumes:
- jenkins-docker-certs:/certs/client
- ${APPS_JENKINS}:/var/jenkins_home
ports:
- "${JENKINS_EXT_ADDRESS}:2376"
command: --storage-driver overlay2
volumes:
jenkins-docker-certs:

View File

@ -1,8 +0,0 @@
#! /usr/bin/bash
source ./.env
set -xe
mkdir -p "${APPS_JENKINS}"