UNCLASSIFIED

Commit 14c378ff authored by gavin.scallon's avatar gavin.scallon Committed by Joshua Eason
Browse files

Initial release

parent ad636e44
#################################################################################
# Default Image Source
ARG BASE_REGISTRY=nexus-docker-secure.levelup-dev.io
ARG BASE_IMAGE=redhat/openjdk/openjdk8
ARG BASE_TAG=1.8
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
LABEL name="Gradle jre8" \
maintainer="gavin.scallon@parsons.com" \
vendor="Open Source" \
version="6.5" \
release="1" \
summary="Gradle is a build tool with a focus on build automation and support for multi-language development." \
description="This Gradle container is designed to support build automation for jre8."
USER 0
ENV GRADLE_HOME=/opt/gradle
COPY gradle-6.5-bin.zip /
RUN dnf install -y unzip && \
unzip -d ${GRADLE_HOME} /gradle-6.5-bin.zip && \
rm -f gradle-6.5-bin.zip && \
ln -s /opt/gradle/gradle-6.5/bin/gradle /usr/bin/gradle && \
dnf clean all && \
rm -rf /var/cache/dnf
RUN groupadd --system --gid 1000 gradle && \
useradd --system -g gradle --uid 1000 -m gradle && \
mkdir /opt/gradle/.gradle && \
chown -R gradle:gradle /opt/gradle && \
chmod 777 /opt/gradle/ && \
echo "Symlinking root Gradle cache to gradle Gradle cache" && \
ln -s /opt/gradle/.gradle /root/.gradle
WORKDIR /opt/gradle
VOLUME /opt/gradle/.gradle
USER gradle
CMD ["gradle"]
@Library('DCCSCR@master') _
dccscrPipeline( version: "6.5")
This diff is collapsed.
# gradle-jre8 # gradle-jre8
## Version 6.5
#### Description from the official Gradle project:
Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.
#### Gradle User Manual
Please refer to the following documentation for more information on using Gradle:
https://docs.gradle.org/current/userguide/userguide.html
## Downloading and building the Gradle image from the Iron Bank
1. Navigate to the Gradle page on Iron Bank and download the tar file of the Gradle image.
2. Navigate to the download folder and run `docker load -i <gradle-img-download-name>.tar` or `podman load -i <gradle-img-download-name>.tar` in order to generate the build for container use (substitute the actual name of the download for "gradle-img-download-name").
## Building a Gradle project/running the Gradle container
Run this from the directory of the Gradle project you want to build:
```docker run --rm -u gradle -v "$PWD":/opt/gradle/project -w /opt/gradle/project gradle gradle <gradle-task>```
Note the above command runs using uid/gid 1000 (user gradle) to avoid running as root.
# Notes
The container uses the `gradle` user profile when running the image.
The container does not expose any ports.
\ No newline at end of file
resources:
- url: "https://services.gradle.org/distributions/gradle-6.5-bin.zip"
filename: "gradle-6.5-bin.zip"
validation:
type: "sha256"
value: "23e7d37e9bb4f8dabb8a3ea7fdee9dd0428b9b1a71d298aefd65b11dccea220f"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment