Add jdk8
This commit is contained in:
parent
8bb22e7da0
commit
b853d766e4
3 changed files with 52 additions and 1 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -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") {
|
stage("Cleanup") {
|
||||||
agent {
|
agent {
|
||||||
label 'dockermain'
|
label 'dockermain'
|
||||||
|
|
3
build.sh
3
build.sh
|
@ -10,3 +10,6 @@ docker build -t git.zontreck.com/ariascreations/yolks:arch base/arch
|
||||||
# Build dart containers
|
# Build dart containers
|
||||||
docker build -t git.zontreck.com/ariascreations/yolks:dart_stable dart/stable
|
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
16
java/8/Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue