-
Notifications
You must be signed in to change notification settings - Fork 79
MOSIP-43846 : Reporting Enhancements for Admin UI Automation #800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e3859fd
MOSIP-43846 : Reporting Enhancements for Admin UI Automation
BhuvanaShreeBS 79e3077
MOSIP-43846 : Reporting Enhancements for Admin UI Automation
BhuvanaShreeBS 4d17a61
resolved codeRabbit comments
BhuvanaShreeBS ba96af3
Resolved codeRabbit comments
BhuvanaShreeBS bbeeb7b
Addressed codeRabbit comment
BhuvanaShreeBS faf58e2
Added method to push report to Minio
BhuvanaShreeBS f5c932a
changed base image in Dockerfile
BhuvanaShreeBS c5884b8
changed base image in Dockerfile
BhuvanaShreeBS cc75283
In Docker file base image updated
BhuvanaShreeBS 1baf7a2
Updated docker file
BhuvanaShreeBS 86dcfdd
Updated docker file
BhuvanaShreeBS 9fa44b4
Addressed the comments and made changes
BhuvanaShreeBS 3d5e740
Updated Dockerfile
BhuvanaShreeBS 9f02e93
MOSIP-43846 : Add Known Issue (KI) Support to Emailable & Extent Reports
BhuvanaShreeBS d7757bf
Updated DockerFile
BhuvanaShreeBS b07fa39
addressed codeRabbit Comments
BhuvanaShreeBS cbdf154
Resolved codeRabbit comment
BhuvanaShreeBS e64dd75
Corrected the typo spelling mistake
BhuvanaShreeBS bda525b
Fixed duplicate reports pushing into minio bucket
BhuvanaShreeBS 32cb50d
Solved codeRabbit comments
BhuvanaShreeBS 36917c4
Improved Known Issue reporting with bug ID links
BhuvanaShreeBS d5e5cc1
Solved codeRabbit comments
BhuvanaShreeBS 23f3262
Solved codeRabbit comments
BhuvanaShreeBS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,59 @@ | ||
| # Start with a base image that includes Java 21 | ||
| FROM openjdk:21-slim | ||
| # --- Base image --- | ||
| FROM eclipse-temurin:21-jre-alpine | ||
|
|
||
| # Install additional dependencies, such as Selenium, Chrome, and kubectl | ||
| USER root | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y wget curl unzip xvfb libxi6 libgconf-2-4 chromium chromium-driver | ||
|
|
||
| # Install kubectl | ||
| RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
| chmod +x kubectl && \ | ||
| mv kubectl /usr/local/bin/kubectl | ||
|
|
||
| # Define build-time arguments and labels | ||
| # --- Build-time arguments (MUST be declared before LABEL) --- | ||
| ARG SOURCE | ||
| ARG COMMIT_HASH | ||
| ARG COMMIT_ID | ||
| ARG BUILD_TIME | ||
|
|
||
| # Set labels for metadata | ||
| # --- Metadata labels (used by CI for validation) --- | ||
| LABEL source=${SOURCE} | ||
| LABEL commit_hash=${COMMIT_HASH} | ||
| LABEL commit_id=${COMMIT_ID} | ||
| LABEL build_time=${BUILD_TIME} | ||
|
|
||
| # Define build-time arguments for user and group | ||
| # --- Additional build-time args --- | ||
| ARG container_user=mosip | ||
| ARG container_user_group=mosip | ||
| ARG container_user_uid=1001 | ||
| ARG container_user_gid=1001 | ||
|
|
||
| # Set working directory for the user | ||
| ENV work_dir=/home/${container_user}/ | ||
|
|
||
| # Create a new user with specified permissions | ||
| RUN groupadd -g ${container_user_gid} ${container_user_group} \ | ||
| && useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/bash -m ${container_user} -d ${work_dir} \ | ||
| && chown -R ${container_user}:${container_user} /home/${container_user}/ | ||
|
|
||
| # Switch to the specified user for the subsequent commands | ||
| USER ${container_user_uid}:${container_user_gid} | ||
| ARG KUBECTL_VERSION=1.22.9 | ||
|
|
||
| # --- Environment variables --- | ||
| ENV DISPLAY=:99 | ||
| ENV work_dir=/home/${container_user} | ||
|
|
||
| # --- Install dependencies & setup user --- | ||
| RUN apk -q update && \ | ||
| apk add --no-cache wget curl unzip xvfb libxi chromium chromium-chromedriver bash shadow && \ | ||
| \ | ||
| addgroup -g ${container_user_gid} ${container_user_group} && \ | ||
| adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user} && \ | ||
| \ | ||
| curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | ||
| chmod +x kubectl && mv kubectl /usr/local/bin/ && \ | ||
| \ | ||
| mkdir -p ${work_dir}/src/test/resources/ \ | ||
| ${work_dir}/test-output/SparkReport/ \ | ||
| ${work_dir}/screenshots/ && \ | ||
| chmod -R 775 ${work_dir} | ||
|
|
||
| # Copy your application files into the container | ||
| COPY --chown=${container_user_uid}:${container_user} --chmod=771 ./entrypoint.sh ${work_dir}/entrypoint.sh | ||
| COPY --chown=${container_user}:${container_user} ./src/main/resources/ ${work_dir}/resources/ | ||
| COPY --chown=${container_user_uid}:${container_user} ./target/*.jar ${work_dir} | ||
|
|
||
| # Set the working directory | ||
| WORKDIR /home/${container_user}/ | ||
| # --- Fix permissions for entrypoint and JARs --- | ||
| RUN chmod +x ${work_dir}/entrypoint.sh && \ | ||
| find ${work_dir} -name "*.jar" -exec chmod 644 {} \; && \ | ||
| chown -R ${container_user}:${container_user} ${work_dir}; | ||
|
|
||
| # --- Switch to non-root user --- | ||
| USER ${container_user_uid}:${container_user_gid} | ||
|
|
||
| # --- Set working directory --- | ||
| WORKDIR ${work_dir} | ||
|
|
||
| # Entrypoint for the container | ||
| ENTRYPOINT ["/bin/bash", "-c", "./entrypoint.sh"] | ||
| # --- Default entrypoint --- | ||
| ENTRYPOINT ["bash", "entrypoint.sh"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.