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

dev: add docker-in-docker to dev container #3135

Conversation

Kuchenpirat
Copy link
Collaborator

@Kuchenpirat Kuchenpirat commented Feb 9, 2024

What type of PR is this?

  • dev
  • feature

What this PR does / why we need it:

This PR adds the ability to run docker commands from within the dev container console.
This is needed to run task docker:prod to create a production image and task dev:services to run a postgres db and mailpit

Uses the feature described here: https://github.com/devcontainers/features/tree/main/src/docker-in-docker

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Rebuild of the dev container needed.
Docker-outside-of-Docker would be also be an option which runs the container directly on the host.

Testing

build a local prod image and started the services.
Only tested on a Windows (win 11) machine.

Copy link
Collaborator

@boc-the-git boc-the-git left a comment

Choose a reason for hiding this comment

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

Minor change, but will approve after

.devcontainer/devcontainer.json Outdated Show resolved Hide resolved
@Kuchenpirat
Copy link
Collaborator Author

Have removed the comments.
Thanks 😊👍

@boc-the-git boc-the-git enabled auto-merge February 9, 2024 20:17
@boc-the-git boc-the-git merged commit fe89981 into mealie-recipes:mealie-next Feb 9, 2024
9 checks passed
@Kuchenpirat Kuchenpirat deleted the feat-add-docker-to-dev-container branch February 9, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants