Skip to content

Docker Compose implementation and Test ARM builds#246

Merged
harshavemula-ua merged 70 commits intomainfrom
test_containers
Sep 5, 2025
Merged

Docker Compose implementation and Test ARM builds#246
harshavemula-ua merged 70 commits intomainfrom
test_containers

Conversation

@harshavemula-ua
Copy link
Collaborator

Updated the Build & Test ARM workflow to use the test execution JSON file. This workflow now performs the build activities through the state machine and runs tests(without pushing the images), with all steps logged to the S3 bucket.

During testing, it validates the Docker files for each service. If no changes are detected, the build step is skipped and the latest image is pulled.

Additionally, the docker_builds.sh script has been deprecated since we’ve implemented Docker Compose for image builds. All workflows that previously relied on the shell script have been updated to use Docker Compose instead.

Screenshot 2025-09-04 at 1 54 29 PM

Successful workflow for building and testing Docker containers (ARM): Link
Successful workflow for building, testing, and pushing Docker containers (ARM): Link

harshavemula-ua and others added 30 commits September 2, 2025 12:36
@harshavemula-ua harshavemula-ua changed the title Test containers Docker Compose implementation and Test ARM builds Sep 4, 2025
Copy link
Collaborator

@JordanLaserGit JordanLaserGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harshavemula-ua thanks for switching the docker_build.sh to docker compose!

I had one small suggestion on where to write the docker build logs, but I'm happy with these changes.

If you could before merging this PR, delete docker_build.sh and edit the documentation in scripts and docker.

"runuser -l ec2-user -c 'TAG=latest-arm64 docker compose -f /home/ec2-user/ngen-datastream/docker/docker-compose.yml build forcingprocessor' >> /home/ec2-user/ngen-datastream/docker_build_log.txt 2>&1",
"runuser -l ec2-user -c 'export DS_TAG=latest-arm64 FP_TAG=latest-arm64 && /home/ec2-user/ngen-datastream/scripts/datastream -s 202006200100 -e 202006200200 -C NWM_RETRO_V3 -d /home/ec2-user/ngen-datastream/data/datastream_test -g https://ngen-datastream.s3.us-east-2.amazonaws.com/palisade.gpkg -R /home/ec2-user/ngen-datastream/configs/ngen/realization_sloth_nom_cfe_pet.json' >> /home/ec2-user/ngen-datastream/docker_build_log.txt 2>&1",
"runuser -l ec2-user -c '/home/ec2-user/ngen-datastream/research_datastream/terraform/test/docker_loginNpush.sh ${TAG} \"${BUILD_ARGS}\"' >> /home/ec2-user/ngen-datastream/docker_login_log.txt 2>&1",
"runuser -l ec2-user -c 'aws s3 cp /home/ec2-user/ngen-datastream/docker_login_log.txt s3://ciroh-community-ngen-datastream/docker_login_log.txt'",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move these to s3://ciroh-community-ngen-datastream/test/ , just to keep the s3 bucket home page cleaner.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure Jordan, will take care of that. Thanks a lot for reviewing the PR and sharing your comments!

@github-project-automation github-project-automation bot moved this from In Progress to Done in NextGen Research Datastream (NRDS) Sep 5, 2025
@harshavemula-ua harshavemula-ua merged commit 3702cd4 into main Sep 5, 2025
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants