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

Add docker-compose-plugin package for Debian #60

Merged
merged 8 commits into from
Jun 6, 2022

Conversation

jsf9k
Copy link
Member

@jsf9k jsf9k commented Jun 2, 2022

🗣 Description

This pull request adds the docker-compose-plugin package for Debian instances.

💭 Motivation and context

The assessors require docker compose version 2.2.3 or later. The docker-compose package currently supports a 1.x version, while the docker-compose-plugin package supports a 2.x version; therefore, the assessors' needs dictate that we install the docker-compose-plugin package.

The difference between the two Debian packages is that docker-compose provides a docker-compose command, while the docker-compose-plugin package provides docker compose functionality to the docker command.

🧪 Testing

All automated tests pass. These changes were also tested successfully via the manual testing done in cisagov/docker-packer#41.

✅ 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.

@jsf9k jsf9k added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Jun 2, 2022
@jsf9k jsf9k self-assigned this Jun 2, 2022
@jsf9k jsf9k linked an issue Jun 2, 2022 that may be closed by this pull request
@jsf9k jsf9k force-pushed the improvement/add-docker-compose-plugin branch from 428c517 to 5dd3d1d Compare June 2, 2022 21:10
jsf9k added 2 commits June 2, 2022 17:25
The versioning of the docker compose plugin is different than that of
the docker-compose Python package.  The assessors require a version
>=2.2.3, which forces the installation of docker-compose-plugin
package.

Also update the Molecule test code in accordance with these changes,
and refactor the code to be more understandable and more in line with
the way we have been writing such tests lately.
@jsf9k jsf9k force-pushed the improvement/add-docker-compose-plugin branch from 5dd3d1d to e49ae2e Compare June 2, 2022 21:26
@jsf9k jsf9k marked this pull request as ready for review June 2, 2022 21:46
@jsf9k jsf9k requested review from dav3r, felddy and mcdonnnj as code owners June 2, 2022 21:46
@jsf9k
Copy link
Member Author

jsf9k commented Jun 2, 2022

I'm open to removing docker-compose anywhere we are able to install docker-compose-plugin. Please let me know what you guys think is best.

@mcdonnnj
Copy link
Member

mcdonnnj commented Jun 2, 2022

I'm open to removing docker-compose anywhere we are able to install docker-compose-plugin. Please let me know what you guys think is best.

I'm fine with that because Docker has made it pretty clear that docker compose is the future. That being said we should check the compatibility list to make sure there's nothing breaking.

molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
Duh.  I was rushing to wrap this up and committed some nonsense.  Thanks to @mcdonnnj for cleaning up after me.

Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
@jsf9k
Copy link
Member Author

jsf9k commented Jun 3, 2022

I'm open to removing docker-compose anywhere we are able to install docker-compose-plugin. Please let me know what you guys think is best.

I'm fine with that because Docker has made it pretty clear that docker compose is the future. That being said we should check the compatibility list to make sure there's nothing breaking.

I see nothing breaking.

jsf9k added a commit to cisagov/docker-packer that referenced this pull request Jun 3, 2022
Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

I believe these should be removed to resolve tests failing after your latest commit (and in concert with your refactor of how the testing is done).

molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
…lled

The latter is the new and preferred way of working with Docker
compositions, if available.
@jsf9k jsf9k force-pushed the improvement/add-docker-compose-plugin branch from fa8e66c to 3e4d6ac Compare June 3, 2022 03:47
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
@jsf9k jsf9k requested a review from mcdonnnj June 3, 2022 04:07
Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

Looking good! One small suggestion from me but otherwise :shipit:

vars/Debian_stretch.yml Outdated Show resolved Hide resolved
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
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.

👍 Though please consider my one comment request.

molecule/default/tests/test_default.py Outdated Show resolved Hide resolved
…cker-compose-plugin

Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
@jsf9k jsf9k merged commit 018b6ef into develop Jun 6, 2022
@jsf9k jsf9k deleted the improvement/add-docker-compose-plugin branch June 6, 2022 15:25
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Jun 7, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/skeleton-docker that referenced this pull request Jun 7, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/ansible-role-guacamole that referenced this pull request Jun 7, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/pca-gophish-composition that referenced this pull request Jun 7, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
mcdonnnj added a commit to cisagov/ncats-webui that referenced this pull request Jun 8, 2022
Docker has moved to a compose plugin for the docker command instead of
the standalone docker-compose package. As of
cisagov/ansible-role-docker#60 this newer syntax is required.
dav3r added a commit to cisagov/cyhy-reports that referenced this pull request Jun 10, 2022
The "docker compose" syntax is the preferred (and only correct) syntax after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/gatherer that referenced this pull request Jun 13, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Jun 15, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Jun 23, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
mcdonnnj pushed a commit to cisagov/cyhy_amis that referenced this pull request Jul 20, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Sep 9, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
mcdonnnj pushed a commit to cisagov/cyhy_amis that referenced this pull request Oct 11, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Oct 18, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
mcdonnnj pushed a commit to cisagov/cyhy_amis that referenced this pull request Oct 19, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Dec 29, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Dec 30, 2022
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
jsf9k added a commit to cisagov/cyhy_amis that referenced this pull request Mar 20, 2023
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
mcdonnnj added a commit to cisagov/ncats-webui that referenced this pull request Mar 30, 2023
Docker has moved to a compose plugin for the docker command instead of
the standalone docker-compose package. As of
cisagov/ansible-role-docker#60 this newer syntax is required.
mcdonnnj pushed a commit to cisagov/cyhy_amis that referenced this pull request Apr 3, 2023
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
Sallenmoore pushed a commit to Sallenmoore/foundryvtt-docker that referenced this pull request Jun 18, 2023
The "docker compose" syntax is the preferred (and only correct) syntax
after the changes in cisagov/ansible-role-docker#60.
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.

Newer version of docker-compose required
3 participants