UNCLASSIFIED

Commit 1c4e09a2 authored by Joshua Eason's avatar Joshua Eason
Browse files

Merge branch 'initial-release' into 'development'

Initial release

See merge request !1
parents ad636e44 14c378ff
Pipeline #22873 failed with stage
#################################################################################
# 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"
  • Pipeline Status: FAILURE
    FAILURE Stage: Build
    Branch: development

    graph LR
      0([setup]):::INTERNAL_SUCCESS --> 1([Import Artifacts]):::SUCCESS --> 2((/)):::INTERNAL_SUCCESS --> 3([Stage Artifacts]):::SUCCESS --> 4((/)):::INTERNAL_SUCCESS --> 5([Build]):::FAILURE --> 6([Publish, Scan & Report]):::INTERNAL_FAILURE
    
    classDef SUCCESS font-size:10px
    classDef FAILURE fill:#f44, font-size:10px
    classDef SKIPPED font-size:10px
    classDef ABORTED fill:#889, font-size:10px
    classDef INTERNAL_SUCCESS font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_FAILURE fill:#f44, font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_SKIPPED font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_ABORTED fill:#889, font-size:10px, stroke-dasharray: 2, 1
    

    Error Log:

    + buildah bud --tls-verify=false --format=docker --loglevel=3 --storage-driver=vfs --build-arg BASE_REGISTRY=**** --build-arg BASE_IMAGE=redhat/openjdk/openjdk8 --build-arg BASE_TAG=1.8 -t ****/opensource/gradle/gradle-jre8:6.5-development --label dccscr.git.commit.id=1c4e09a2b09f34cfc62c0cd242c0f270b9dacd5d --label dccscr.git.commit.url=https://dccscr.dsop.io/dsop/opensource/gradle/gradle-jre8/tree/1c4e09a2b09f34cfc62c0cd242c0f270b9dacd5d --label dccscr.git.url=https://repo1.dsop.io/dsop/opensource/gradle/gradle-jre8.git --label dccscr.git.branch=development --label dccscr.image.version=6.5 --label 'dccscr.image.build.date=Tue Jun 16 14:35:02 UTC 2020
    ' --label dccscr.image.build.id=1 --label dccscr.image.name=gradle-jre8 --label dccscr.ironbank.approval.status=notapproved --label dccscr.ironbank.approval.url=TBD --label dccscr.ironbank.url=TBD --label dcar_status=notapproved .
    STEP 1: FROM ****/redhat/openjdk/openjdk8:1.8
    error creating build container: Error initializing source docker://****/redhat/openjdk/openjdk8:1.8: Error reading manifest 1.8 in ****/redhat/openjdk/openjdk8: manifest unknown: manifest unknown
    script returned exit code 1
  • Pipeline Status: FAILURE
    FAILURE Stage: S3 Artifacts
    Branch: development

    graph LR
      0([setup]):::INTERNAL_SUCCESS --> 1([Import Artifacts]):::SUCCESS --> 2((/)):::INTERNAL_SUCCESS --> 3([Stage Artifacts]):::SUCCESS --> 4((/)):::INTERNAL_SUCCESS --> 5([Build]):::SUCCESS --> 6([Publish, Scan & Report]):::INTERNAL_FAILURE
    
    classDef SUCCESS font-size:10px
    classDef FAILURE fill:#f44, font-size:10px
    classDef SKIPPED font-size:10px
    classDef ABORTED fill:#889, font-size:10px
    classDef INTERNAL_SUCCESS font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_FAILURE fill:#f44, font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_SKIPPED font-size:10px, stroke-dasharray: 2, 1
    classDef INTERNAL_ABORTED fill:#889, font-size:10px, stroke-dasharray: 2, 1
    
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