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

Store the Docker Compose configuration in this project #31

Merged
merged 2 commits into from
Oct 5, 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/code-gov-update.

💭 Motivation and context

The use of this role is to deploy the cisagov/code-gov-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.

This moves the Docker Compose configuration out of a
`docker-compose.override.yml` file stored in the configuration for the
cisagov/cide-gov-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.
Since these are not positional arguments we can sort them to make
maintenance easier.
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Sep 23, 2022
@mcdonnnj mcdonnnj self-assigned this Sep 23, 2022
@mcdonnnj mcdonnnj requested a review from jsf9k as a code owner September 23, 2022 22:37
@mcdonnnj mcdonnnj requested a review from dav3r September 23, 2022 22:37
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.

👍 👍

@mcdonnnj mcdonnnj merged commit c201f87 into develop Oct 5, 2022
@mcdonnnj mcdonnnj deleted the improvement/rework_functionality branch October 5, 2022 08:05
mcdonnnj added a commit to cisagov/code-gov-update that referenced this pull request Dec 7, 2022
Now that this deployment specific override file has been integrated
into cisagov/ansible-role-code-gov-update in
cisagov/ansible-role-code-gov-update#31 we no longer need to store it
in this project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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