Add Colima installation over Docker Desktop#96
Conversation
|
Hi Michael, I noticed 2 small issues: 1) for dev_envs/mac-env-setup.md line 153 , requires a wording change from 'optionalcon figuration' to 'optional configuration'. 2) for two brew install commands I received the error: Permission denied @ apply2files-/usr/local/lib/docker/cli-plugins. (This occurred when running 'brew install docker-buildx' and 'brew install colima docker docker-compose'). |
I think the second issue might be because you haven't removed previous docker configurations from your system. |
dav3r
left a comment
There was a problem hiding this comment.
Not a full review, but a couple of items caught my eye.
faeed39 to
b8034d4
Compare
|
Something I noticed when running |
Final boss approaches! @mcdonnnj |
Since our suggested containerization tool is Colima it makes sense to update the development guide to reflect this and remove the Docker installation steps.
Co-authored-by: David Harris <123905168+dv4harr10@users.noreply.github.com>
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Co-authored-by: dav3r <david.redmin@gwe.cisa.dhs.gov>
Co-authored-by: dav3r <david.redmin@gwe.cisa.dhs.gov>
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Adds documentation for linking Colima with the Docker daemon. This ensures Docker client tools communicate with Colima's managed Docker daemon, essential for Docker-based applications like Molecule without Docker Desktop. Includes the setup code snippet and its importance for better user understanding and usability in development workflows.
Co-authored-by: Shane Frasier <jeremy.frasier@gwe.cisa.dhs.gov>
Change the section heading from "Configure Colima's Docker daemon" to "Support applications that are unaware of Docker context" to make it more accurate and reflective of the content. Co-authored-by: dav3r <david.redmin@gwe.cisa.dhs.gov>
Co-authored-by: dav3r <david.redmin@gwe.cisa.dhs.gov>
5a4f322 to
66de2ef
Compare
|
@mcdonnnj Last call on the review for this. 🚂 |
mcdonnnj
left a comment
There was a problem hiding this comment.
Strong work 💪💪💪 I have some feedback for your consideration.
Note
I tested and verified the plugin interactions with the docker-compose and docker-buildx formulae. Immediately after installation I was able to run a docker <plugin> and get the help output while before installation Docker complained about an unknown command.
dev_envs/mac-env-setup.md
Outdated
| packages. We recommend installing all the packages specified in the | ||
| [CISA `laptop` script repository](https://github.com/cisagov/laptop/blob/master/Brewfile). | ||
|
|
||
| ### Colima: A Docker alternative ### |
There was a problem hiding this comment.
I would like this whole section to be a sub-section for Docker (above). It still relies on Docker under the hood (by default) and simply provides an alternative for Docker Desktop.
dev_envs/mac-env-setup.md
Outdated
|
|
||
| Enhance your Colima setup with the following optional configurations: | ||
|
|
||
| #### Docker Compose as a Docker plugin #### |
There was a problem hiding this comment.
So the docker-compose formula is the Compose plugin. You can see in the formula's code that it's pulling down the latest version. It just creates a docker-compose binary that is symlinked into the plugins directory.
There was a problem hiding this comment.
Good catch! Verified it on my end. Everything looks good without the config stuff.
See here: 8ce2503
dev_envs/mac-env-setup.md
Outdated
|
|
||
| Ensure the `docker compose` usage menu is displayed. | ||
|
|
||
| #### Installing Buildx #### |
There was a problem hiding this comment.
This is also already installed as a Docker plugin by the formula per the formula's code.
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
It was discovered that the docker-compose formula is the Compose plugin. It creates a docker-compose binary that is symlinked into the plugins directory. This is also the case for the docker-buildx plugin. Since this is the case it makes sense to remove the instructions for configuring the plugins. The Colima instructions were also moved to be a sub section under the Docker section since Colima relies on Docker under the hood and is simply an alternative to Docker.
🗣 Description
This PR will remove the current Docker documentation from the mac-env-setup.md and replace it with steps to install and configure Colima.
💭 Motivation and context
Docker now requires certain users and businesses to purchase a license for use of Docker Desktop.
Colima is an open source software that is already used by developers in this organization and has a similar set of CLI commands as Docker.
This will satisfy issue #95.
✅ Pre-approval checklist
to reflect the changes in this PR.