DATAREDIS-1220 - Manage JDK 15 container creation.

This commit is contained in:
Greg L. Turnquist
2020-11-03 15:31:01 -06:00
parent 7dc5a2033f
commit 28949447b1
2 changed files with 32 additions and 0 deletions

19
Jenkinsfile vendored
View File

@@ -52,6 +52,25 @@ pipeline {
}
}
}
stage('Publish OpenJDK 15 + Redis 6.0 docker image') {
when {
anyOf {
changeset "ci/openjdk15-redis-6.0/**"
changeset "Makefile"
}
}
agent { label 'data' }
options { timeout(time: 20, unit: 'MINUTES') }
steps {
script {
def image = docker.build("springci/spring-data-openjdk15-with-redis-6.0", "-f ci/openjdk15-redis-6.0/Dockerfile .")
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
image.push()
}
}
}
}
}
}

View File

@@ -0,0 +1,13 @@
FROM adoptopenjdk/openjdk15:latest
# Copy Spring Data Redis's Makefile into the container
COPY ./Makefile /
RUN set -eux; \
apt-get update ; \
apt-get install -y build-essential ; \
make work/redis/bin/redis-cli work/redis/bin/redis-server; \
chmod -R o+rw work; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*;