Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Store the Docker Compose configuration in this project #8

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull request changes this Ansible role to use a specific docker-compose.yml file configured in this repository instead of relying on the docker-compose.yml and docker-compose.override.yml files currently stored in cisagov/client-cert-update.

💭 Motivation and context

The use of this role is to deploy the cisagov/client-cert-update image with a specific Docker Compose configuration. It makes more sense to make the Compose configuration independent of the Docker image's configuration. This means that the image can change significantly without impacting this role or it's deployment until it is updated to use a newer image tag.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Sep 22, 2022
@mcdonnnj mcdonnnj self-assigned this Sep 22, 2022
This moves the Docker Compose configuration out of a
`docker-compose.override.yml` file stored in the configuration for the
cisagov/client-cert-update image and into this Ansible role. This
ensures that the necessary configuration to deploy this Docker image is
stored with the Ansible role and changes to the configuration will be
limited to this repository. With this the image configuration can
change and until the Docker configuration in this role is modified it
will not impact this role's usage.
@mcdonnnj mcdonnnj force-pushed the improvement/rework_functionality branch from b9fb651 to 42f869d Compare September 22, 2022 18:14
Since these are not positional arguments we can sort them to make
maintenance easier.
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

I think this makes a lot of sense.

Do you intend to clean up cisagov/client-cert-update as well? At a minimum the Docker composition files there can be removed and/or simplified.

@mcdonnnj
Copy link
Member Author

I think this makes a lot of sense.

Do you intend to clean up cisagov/client-cert-update as well? At a minimum the Docker composition files there can be removed and/or simplified.

Yep I have a branch with the docker-compose.override.yml file removed that I'm going to PR into the improvement/modernize_project branch that I've already been cooking. I just wanted to make sure everyone was on board with this change in the Ansible role. I plan on doing the same thing for cisagov/ansible-role-code-gov-update as well.

Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

Good stuff, nice work! 🐳

@mcdonnnj mcdonnnj merged commit e813fcb into develop Sep 23, 2022
@mcdonnnj mcdonnnj deleted the improvement/rework_functionality branch September 23, 2022 22:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants