This commit is contained in:
zontreck 2024-09-03 16:12:42 -07:00
parent 8bb22e7da0
commit b853d766e4
3 changed files with 52 additions and 1 deletions

32
Jenkinsfile vendored
View file

@ -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'

View file

@ -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
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

16
java/8/Dockerfile Normal file
View file

@ -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"]