-
Notifications
You must be signed in to change notification settings - Fork 91
MOSIP-45061 & MOSIP-45062 - Created new testrig for Keymanger and added few testcases #580
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
6 commits
Select commit
Hold shift + click to select a range
ac8f7df
MOSIP-45061 & MOSIP-45062 - Created new testrig for Keymanger and add…
mohanachandran-s 0ec0ad8
Removed prerequisite xml file
mohanachandran-s ac6f9aa
Resolved code rabbit comments
mohanachandran-s 95838fb
Resolved code rabbit comments
mohanachandran-s 4477391
Resolved build failure
mohanachandran-s c53b175
Removed the IDE run configuration setup files
mohanachandran-s 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| FROM mosipid/openjdk-21-jre:21.0.4 | ||
|
|
||
| ARG SOURCE | ||
| ARG COMMIT_HASH | ||
| ARG COMMIT_ID | ||
| ARG BUILD_TIME | ||
| LABEL source=${SOURCE} | ||
| LABEL commit_hash=${COMMIT_HASH} | ||
| LABEL commit_id=${COMMIT_ID} | ||
| LABEL build_time=${BUILD_TIME} | ||
|
|
||
| # can be passed during Docker build as build time environment for github branch to pickup configuration from. | ||
| ARG container_user=mosip | ||
|
|
||
| # can be passed during Docker build as build time environment for github branch to pickup configuration from. | ||
| ARG container_user_group=mosip | ||
|
|
||
| # can be passed during Docker build as build time environment for github branch to pickup configuration from. | ||
| ARG container_user_uid=1001 | ||
|
|
||
| # can be passed during Docker build as build time environment for github branch to pickup configuration from. | ||
| ARG container_user_gid=1001 | ||
|
|
||
| ARG KUBECTL_VERSION=1.22.9 | ||
|
|
||
| # set working directory for the user | ||
| WORKDIR /home/${container_user} | ||
|
|
||
| ENV work_dir=/home/${container_user} | ||
|
|
||
| # Combine all necessary files into a single COPY command | ||
| COPY ./api-test/target $work_dir/ | ||
| COPY entrypoint.sh $work_dir | ||
|
|
||
| # install packages and create user | ||
| RUN apt-get -y update \ | ||
| && apt-get install -y --no-install-recommends unzip jq curl \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && groupadd -g ${container_user_gid} ${container_user_group} \ | ||
| && useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/bash -m ${container_user} \ | ||
| && curl -fLO "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \ | ||
| && curl -fLO "https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" \ | ||
| && echo "$(cat kubectl.sha256) kubectl" | sha256sum -c - \ | ||
| && rm kubectl.sha256 \ | ||
| && mkdir -p /home/${container_user} \ | ||
| && chmod +x kubectl $work_dir/entrypoint.sh \ | ||
| && mv kubectl /usr/local/bin/ \ | ||
| && chown -R ${container_user}:${container_user} /home/${container_user} /etc/ssl/certs/java/cacerts \ | ||
| && chmod 644 /etc/ssl/certs/java/cacerts | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| #select container user for all tasks | ||
| USER ${container_user_uid}:${container_user_gid} | ||
|
|
||
| WORKDIR ${work_dir} | ||
|
|
||
| EXPOSE 8083 | ||
|
|
||
| ENV MODULES= | ||
| ENV ENV_USER= | ||
| ENV ENV_ENDPOINT= | ||
| ENV ENV_TESTLEVEL=smokeAndRegression | ||
|
|
||
| ENTRYPOINT ["./entrypoint.sh"] | ||
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.