From b853d766e45e654caf989ca9d16012d7ab81cd3c Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 3 Sep 2024 16:12:42 -0700 Subject: [PATCH] Add jdk8 --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ build.sh | 5 ++++- java/8/Dockerfile | 16 ++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 java/8/Dockerfile diff --git a/Jenkinsfile b/Jenkinsfile index 7a381fd..6399e0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,6 +82,38 @@ pipeline { } } + stage("Build Java Containers") { + agent { + label 'dockermain' + } + + steps { + script { + sh ''' + #!/bin/bash + + docker build -t git.zontreck.com/ariascreations/yolks:jdk8 java/8 + ''' + } + } + } + + stage("Push Java Containers") { + agent { + label 'dockermain' + } + + steps { + script { + sh ''' + #!/bin/bash + + docker push git.zontreck.com/ariascreations/yolks:jdk8 + ''' + } + } + } + stage("Cleanup") { agent { label 'dockermain' diff --git a/build.sh b/build.sh index 7768741..b52ef3d 100755 --- a/build.sh +++ b/build.sh @@ -9,4 +9,7 @@ docker build -t git.zontreck.com/ariascreations/yolks:arch base/arch # Build dart containers docker build -t git.zontreck.com/ariascreations/yolks:dart_stable dart/stable -docker build -t git.zontreck.com/ariascreations/yolks:dart_3.3 dart/3.3 \ No newline at end of file +docker build -t git.zontreck.com/ariascreations/yolks:dart_3.3 dart/3.3 + +# Build java containers +docker build -t git.zontreck.com/ariascreations/yolks:jdk8 java/8 \ No newline at end of file diff --git a/java/8/Dockerfile b/java/8/Dockerfile new file mode 100644 index 0000000..4ee694a --- /dev/null +++ b/java/8/Dockerfile @@ -0,0 +1,16 @@ +FROM git.zontreck.com/ariascreations/yolks:debian + +LABEL type="OpenJDK 8" + +USER root +RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip + +# Install OpenJDK 8 +RUN apt-get install -y openjdk-8-jdk + +USER container +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +ENTRYPOINT ["/bin/bash", "-c", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file