Skip to content
Snippets Groups Projects
Commit 1430bafa authored by Roger Feese's avatar Roger Feese
Browse files

Idea for a java build container with jdk matching our host environments with...

Idea for a java build container with jdk matching our host environments with commonly-used build tools.
parent de77976e
No related branches found
No related tags found
1 merge request!103Draft: Java build container
......@@ -31,6 +31,7 @@ mobile: android-build-server
static-code-analysis: static-code-analysis_latest static-code-analysys_php static-code-analysys_python static-code-analysys_android
utility: alpine-ssh-client merge-request-check
dotnet: dotnet_6.0
java: java_8
# PHP Lint Images
####################
......@@ -147,6 +148,12 @@ dependency-check: dependency-check/Dockerfile
dotnet_6.0: dotnet-build-server/6.0/Dockerfile
docker build $(BUILD_ARGS) -t ${REPO_ORG}/dotnet-build-server:6.0 -f dotnet-build-server/6.0/Dockerfile dotnet-build-server/6.0/
# java Images
####################
java_8: java-build-server/8/Dockerfile
docker build $(BUILD_ARGS) -t ${REPO_ORG}/java-build-server:8 -f java-build-server/8/Dockerfile java-build-server/8/
#IMAGES_TO_SCAN = $(shell docker images --format '{{.Repository}}:{{.Tag}}' | grep unl-its )
#security:
# @docker login -u ${TENABLE_IO_ACCESS_KEY} -p ${TENABLE_IO_SECRET_KEY} registry.cloud.tenable.com
......
FROM eclipse-temurin:8-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Java OpenJDK 1.8" \
org.label-schema.description="Docker image to Java SE 8 applications" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vendor="University of Nebraska - Lincoln" \
org.label-schema.version="0.1.0" \
org.label-schema.schema-version="1.0" \
maintainer="Roger Feese <rfeese@nebraska.edu>"
# Install additional build tools
# - gradle
# - maven
# - ant + ivy
RUN apk add --no-cache \
gradle \
maven \
apache-ant
# ivy installation in ant
# download ivy
# extract the ivy jar file to the ant lib folder
# cleanup
RUN wget -q -O /tmp/apache-ivy.tar.gz https://dlcdn.apache.org//ant/ivy/2.5.2/apache-ivy-2.5.2-bin.tar.gz && \
tar --strip-components 1 -C /usr/share/java/apache-ant/lib/ -xzf /tmp/apache-ivy.tar.gz apache-ivy-2.5.2/ivy-2.5.2.jar && \
rm /tmp/apache-ivy.tar.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment