UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 13db2c08 authored by Al Fontaine's avatar Al Fontaine
Browse files

Merge branch 'development' into 'master'

Master

See merge request !24
parents 28ddbd4f 7b442781
No related branches found
No related tags found
2 merge requests!33Agg update,!24Master
Pipeline #1196778 failed
ARG BASE_REGISTRY=registry1.dso.mil ARG BASE_REGISTRY=registry1.dso.mil
ARG BASE_IMAGE=ironbank/redhat/openjdk/openjdk17 ARG BASE_IMAGE=ironbank/redhat/openjdk/openjdk17
ARG BASE_TAG=1.17 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 FROM registry1.dso.mil/ironbank/opensource/maven/maven-openjdk-17:3.8.5-openjdk-17 as base
USER 0 USER 0
......
# elrraggregator # elrraggregator
ELRR service which aggregates learner profiles ELRR service which aggregates learner profiles
# Requirements # Requirements
For building and running the elrraggregator you need: For building and running the elrraggregator you need:
- JDK 1.8 - JDK 1.8
- Maven 3 - Maven 3
# Build the application # Build the application
- mvn clean install -Dmaven.test.skip=false - mvn clean install -Dmaven.test.skip=false
# Deploying the application on Docker # Deploying the application on Docker
The easiest way to deploy the sample application to Docker is to follow below steps: 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) - 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 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 - docker run -p Port:Port -t <docker_hub>/test:elrraggregator-dck-img
# Running the application locally # 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 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: # Alternatively you can use the Spring Boot Maven plugin:
- mvn spring-boot:run - mvn spring-boot:run
# Optional step # Optional step
- docker push <docker_hub>/test:elrraggregator-dck-img - docker push <docker_hub>/test:elrraggregator-dck-img
--- ---
apiVersion: v1 apiVersion: v1
# The repository name in registry1, excluding /ironbank/ # The repository name in registry1, excluding /ironbank/
name: "opensource/adl-initiative/elrr/elrr-aggregator" name: "opensource/adl-initiative/elrr/elrr-aggregator"
# List of tags to push for the repository in registry1 # List of tags to push for the repository in registry1
# The most specific version should be the first tag and will be shown # The most specific version should be the first tag and will be shown
# on ironbank.dsop.io # on ironbank.dsop.io
tags: tags:
- "1.0.0" - "1.0.0"
- "latest" - "latest"
# Build args passed to Dockerfile-COPY ARGs # Build args passed to Dockerfile-COPY ARGs
args: args:
BASE_IMAGE: "redhat/openjdk/openjdk17" BASE_IMAGE: "redhat/openjdk/openjdk17"
BASE_TAG: "1.17" BASE_TAG: "1.17"
# Docker image labels # Docker image labels
labels: labels:
org.opencontainers.image.title: "elrraggregator" org.opencontainers.image.title: "elrraggregator"
org.opencontainers.image.description: "Image for Enterprise Learner Record Repository (ELRR) service which aggregates learner profiles" org.opencontainers.image.description: "Image for Enterprise Learner Record Repository (ELRR) service which aggregates learner profiles"
# URL to find more information on the image # URL to find more information on the image
org.opencontainers.image.licenses: "Oracle Technology Network License" org.opencontainers.image.licenses: "Oracle Technology Network License"
org.opencontainers.image.url: "https://github.com/US-ELRR/elrraggregator" org.opencontainers.image.url: "https://github.com/US-ELRR/elrraggregator"
org.opencontainers.image.vendor: "Enterprise Learner Record Repository (ELRR)" org.opencontainers.image.vendor: "Enterprise Learner Record Repository (ELRR)"
org.opencontainers.image.version: "1.0.0" org.opencontainers.image.version: "1.0.0"
mil.dso.ironbank.image.keywords: "elrr, aggregator, elrraggregator, enterprise learner record repository" mil.dso.ironbank.image.keywords: "elrr, aggregator, elrraggregator, enterprise learner record repository"
# Product the image belongs to for grouping multiple images # Product the image belongs to for grouping multiple images
mil.dso.ironbank.product.name: "Enterprise Learner Record Repository (ELRR)" mil.dso.ironbank.product.name: "Enterprise Learner Record Repository (ELRR)"
# List of resources to make available to the offline build context # List of resources to make available to the offline build context
resources: resources:
- url: "https://github.com/US-ELRR/elrraggregator/archive/refs/tags/v1.1.tar.gz" - url: "https://github.com/US-ELRR/elrraggregator/archive/refs/tags/v1.1.tar.gz"
filename: "elrraggregator-1.1.tar.gz" filename: "elrraggregator-1.1.tar.gz"
validation: validation:
type: "sha256" type: "sha256"
value: "1ebee25bfe811af3b10df02cad3adafb1ad27b4206a18679d9f0b69736208ec5" value: "1ebee25bfe811af3b10df02cad3adafb1ad27b4206a18679d9f0b69736208ec5"
# List of project maintainers # List of project maintainers
maintainers: maintainers:
- email: "simeransandhu@deloitte.com" - email: "simeransandhu@deloitte.com"
name: "Simeranjeet Sandhu" name: "Simeranjeet Sandhu"
username: "ssandhu" username: "ssandhu"
- email: "micson@deloitte.com" - email: "micson@deloitte.com"
name: "Michael Son" name: "Michael Son"
username: "micson-us" username: "micson-us"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment