Skip to content
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

[#765] Adding ACA Rocky Container for CI System Tests #769

Merged
merged 2 commits into from May 16, 2024

Conversation

iadgovuser62
Copy link

@iadgovuser62 iadgovuser62 commented May 7, 2024

This PR is meant to add an ACA container built from Rocky 9 specifically meant for System Tests in the CI. It also follows up on PR 748 to make minor additions to suit the new ACA containers, plus some improved comments and one renamed file.

The following files have been added/modified:

  • Dockerfile.aca-rocky-ci is the Dockerfile used to create an image for the ACA built from Rocky 9, specifically to be used with the CI System Tests. It differs from Dockerfile.aca-rocky by NOT using a CMD statement at the end of the Dockerfile (it is now commented out) to start the ACA; instead, the ACA scripts are called from run_system_tests.sh. However, if the user wanted to use the CMD statement and use the container for other purposes, they can uncomment it at the end of the file as specified by the commented instructions. Also, this image has already been pushed to the nsacyber/HIRS GitHub package registry as ghcr.io/nsacyber/hirs/aca-rocky-ci:latest.
  • Dockerfile.tpm2provisioner_dotnet (old name) has been renamed to Dockerfile.tpm2provisioner-dotnet-ci (new name) to have a consistent naming convention, as with Dockerfile.aca-rocky-ci. Also added some more comments to guide any users who want to build/run the container locally.
  • run_system_tests.sh now calls for the execution of scripts to set up and start the ACA within the container pulled from ghcr.io/nsacyber/hirs/aca-rocky-ci:latest. It also checks out the current branch being pushed within the container's HIRS clone before starting the ACA. To confirm the branch for both the ACA and Provisioner, it will echo the current branch name within the HIRS cloned repo inside the containers, which will be output to the GitHub Action run (see lines 20 and 27 of run_system_tests.sh).
  • docker-compose-system-test.yml now pulls the new ghcr.io/nsacyber/hirs/aca-rocky-ci:latest image.
  • system_test.yml now has updated Action uses (v3 -> v4), removing a warning that was there previously.

To perform the test in GitHub actions:

On this branch in remote repository, use a workflow dispatch by going: Actions > HIRS System Tests > Run workflow.

… system tests; Added ACA-CI Dockerfile which has been pushed to registry; Renamed Provisioner for CI Dockerfile for consistency
@iadgovuser62 iadgovuser62 added testing migration Update to RHEL 8 labels May 7, 2024
@iadgovuser62 iadgovuser62 self-assigned this May 7, 2024
@iadgovuser62 iadgovuser62 linked an issue May 7, 2024 that may be closed by this pull request
@iadgovuser26 iadgovuser26 merged commit 822978e into main May 16, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration Update to RHEL 8 testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ACA Container built from source on Rocky 9
3 participants