diff --git a/Dockerfile b/Dockerfile index 9aee46949b91ad07da044a0d7d74555fc1899a20..b47b7f8cf262b4e6804f0eab5f761a10c525255c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ ARG BASE_REGISTRY=registry1.dso.mil ARG BASE_IMAGE=ironbank/redhat/openjdk/openjdk17 ARG BASE_TAG=1.17 -ARG DEPENDENCY=target/dependency FROM registry1.dso.mil/ironbank/opensource/maven/maven-openjdk-17:3.8.5-openjdk-17 as base USER 0 diff --git a/README.md b/README.md index 9c0355236df9d455df81e808f5f5afc38488fdac..8cf75b806ac3cd0cf83f16370d658555b7f95e9b 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -# elrraggregator -ELRR service which aggregates learner profiles - -# Requirements -For building and running the elrraggregator you need: -- JDK 1.8 -- Maven 3 -# Build the application -- mvn clean install -Dmaven.test.skip=false -# Deploying the application on Docker -The easiest way to deploy the sample application to Docker is to follow below steps: -- mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) -- docker build --build-arg JAR_FILE="./target/elrraggregator-0.0.1-SNAPSHOT.jar" --file Dockerfile -t <docker_hub>/test:elrraggregator-dck-img -- docker run -p Port:Port -t <docker_hub>/test:elrraggregator-dck-img - -# Running the application locally -There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.deloitte.elrr.elrrconsolidate.ElrrConsolidateApplication class from your IDE -# Alternatively you can use the Spring Boot Maven plugin: -- mvn spring-boot:run -# Optional step -- docker push <docker_hub>/test:elrraggregator-dck-img +# elrraggregator +ELRR service which aggregates learner profiles + +# Requirements +For building and running the elrraggregator you need: +- JDK 1.8 +- Maven 3 +# Build the application +- mvn clean install -Dmaven.test.skip=false +# Deploying the application on Docker +The easiest way to deploy the sample application to Docker is to follow below steps: +- mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) +- docker build --build-arg JAR_FILE="./target/elrraggregator-0.0.1-SNAPSHOT.jar" --file Dockerfile -t <docker_hub>/test:elrraggregator-dck-img +- docker run -p Port:Port -t <docker_hub>/test:elrraggregator-dck-img + +# Running the application locally +There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.deloitte.elrr.elrrconsolidate.ElrrConsolidateApplication class from your IDE +# Alternatively you can use the Spring Boot Maven plugin: +- mvn spring-boot:run +# Optional step +- docker push <docker_hub>/test:elrraggregator-dck-img diff --git a/hardening_manifest.yaml b/hardening_manifest.yaml index 7807ee6cfd7db573cb500e998aee72a451ba5600..c5644d8c7f0a6a7158c663c9325fe9d32b3be982 100644 --- a/hardening_manifest.yaml +++ b/hardening_manifest.yaml @@ -1,49 +1,49 @@ ---- -apiVersion: v1 - -# The repository name in registry1, excluding /ironbank/ -name: "opensource/adl-initiative/elrr/elrr-aggregator" - -# List of tags to push for the repository in registry1 -# The most specific version should be the first tag and will be shown -# on ironbank.dsop.io -tags: -- "1.0.0" -- "latest" - -# Build args passed to Dockerfile-COPY ARGs -args: - BASE_IMAGE: "redhat/openjdk/openjdk17" - BASE_TAG: "1.17" - -# Docker image labels -labels: - org.opencontainers.image.title: "elrraggregator" - org.opencontainers.image.description: "Image for Enterprise Learner Record Repository (ELRR) service which aggregates learner profiles" - # URL to find more information on the image - org.opencontainers.image.licenses: "Oracle Technology Network License" - org.opencontainers.image.url: "https://github.com/US-ELRR/elrraggregator" - org.opencontainers.image.vendor: "Enterprise Learner Record Repository (ELRR)" - org.opencontainers.image.version: "1.0.0" - mil.dso.ironbank.image.keywords: "elrr, aggregator, elrraggregator, enterprise learner record repository" - # Product the image belongs to for grouping multiple images - mil.dso.ironbank.product.name: "Enterprise Learner Record Repository (ELRR)" - -# List of resources to make available to the offline build context -resources: -- url: "https://github.com/US-ELRR/elrraggregator/archive/refs/tags/v1.1.tar.gz" - filename: "elrraggregator-1.1.tar.gz" - validation: - type: "sha256" - value: "1ebee25bfe811af3b10df02cad3adafb1ad27b4206a18679d9f0b69736208ec5" - -# List of project maintainers -maintainers: -- email: "simeransandhu@deloitte.com" - name: "Simeranjeet Sandhu" - username: "ssandhu" -- email: "micson@deloitte.com" - name: "Michael Son" - username: "micson-us" - - +--- +apiVersion: v1 + +# The repository name in registry1, excluding /ironbank/ +name: "opensource/adl-initiative/elrr/elrr-aggregator" + +# List of tags to push for the repository in registry1 +# The most specific version should be the first tag and will be shown +# on ironbank.dsop.io +tags: +- "1.0.0" +- "latest" + +# Build args passed to Dockerfile-COPY ARGs +args: + BASE_IMAGE: "redhat/openjdk/openjdk17" + BASE_TAG: "1.17" + +# Docker image labels +labels: + org.opencontainers.image.title: "elrraggregator" + org.opencontainers.image.description: "Image for Enterprise Learner Record Repository (ELRR) service which aggregates learner profiles" + # URL to find more information on the image + org.opencontainers.image.licenses: "Oracle Technology Network License" + org.opencontainers.image.url: "https://github.com/US-ELRR/elrraggregator" + org.opencontainers.image.vendor: "Enterprise Learner Record Repository (ELRR)" + org.opencontainers.image.version: "1.0.0" + mil.dso.ironbank.image.keywords: "elrr, aggregator, elrraggregator, enterprise learner record repository" + # Product the image belongs to for grouping multiple images + mil.dso.ironbank.product.name: "Enterprise Learner Record Repository (ELRR)" + +# List of resources to make available to the offline build context +resources: +- url: "https://github.com/US-ELRR/elrraggregator/archive/refs/tags/v1.1.tar.gz" + filename: "elrraggregator-1.1.tar.gz" + validation: + type: "sha256" + value: "1ebee25bfe811af3b10df02cad3adafb1ad27b4206a18679d9f0b69736208ec5" + +# List of project maintainers +maintainers: +- email: "simeransandhu@deloitte.com" + name: "Simeranjeet Sandhu" + username: "ssandhu" +- email: "micson@deloitte.com" + name: "Michael Son" + username: "micson-us" + +