Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

k8s-jenkins-slave-oracle-java

License

Notifications You must be signed in to change notification settings

cloutainer/k8s-jenkins-slave-oracle-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

‼️ DEPRECATED AND ARCHIVED

k8s-jenkins-slave-oracle-java

Kubernetes Docker image providing Jenkins Slave JNLP with Oracle Java and Atlassian SDK.


 

Preinstalled Tools

tool version
java jdk AdoptOpenJDK 8u322
atlassian sdk 8.2.7
maven 3.8.5
gradle 7.4.2
git apt-get
curl, wget apt-get
zip, bzip2 apt-get
jq apt-get

 

Usage

Use with Kubernetes Jenkins Plugin like so:

podTemplate(
  name: 'java-v18',
  label: 'k8s-jenkins-slave-oracle-java-v19',
  cloud: 'mycloud',
  nodeSelector: 'failure-domain.beta.kubernetes.io/zone=eu-west-1a',
  containers: [
    containerTemplate(
      name: 'jnlp',
      image: 'cloutainer/k8s-jenkins-slave-oracle-java:v19',
      privileged: false,
      command: '/opt/docker-entrypoint.sh',
      args: '',
      alwaysPullImage: false,
      workingDir: '/home/jenkins',
      resourceRequestCpu: '500m',
      resourceLimitCpu: '1',
      resourceRequestMemory: '3000Mi',
      resourceLimitMemory: '3000Mi'
    )
  ]
) {
  node('k8s-jenkins-slave-oracle-java-v19') {
    stage('build and test') {
      sh 'git clone https://github.com/spring-projects/spring-boot.git code'
      dir('code') {
        dir('spring-boot-samples') {
          dir('spring-boot-sample-war') {
            sh 'mvn compile'
          }
        }
      }
    }
  }
}

Debug - Open a bash to e.g. check the tools

docker run -i -t --entrypoint "/bin/bash" cloutainer/k8s-jenkins-slave-oracle-java:v19
$> atlas-version
...
$> java -version
...
$> gradle -version
...

 

Trademarks and Third Party Licenses

  • Atlassian SDK
  • Oracle Java
    • Oracle, OpenJDK and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
    • Please check yourself for corresponding Licenses and Terms of Use at www.oracle.com.
  • Docker
    • Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.
    • Please check yourself for corresponding Licenses and Terms of Use at www.docker.com.
  • Ubuntu

 

License

MIT © Bernhard Grünewaldt