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

Improve docker compatibility #1316

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

chmanie
Copy link
Member

@chmanie chmanie commented Nov 13, 2023

Description

This PR improves the compatibility of our docker setup with newer docker versions and tools like podman which in turn enables us to run our setup as non-root users in Linux.

Most importantly the links entries were removed from the docker-compose files which is an option that's long deprecated and not necessary anymore.


To use with podman if you like (rootless, on Linux - DO NOT DO THIS IF YOU'RE ON A MAC OR WINDOWS):

  • Remove docker from your system 😱
  • We need podman in version 4.7.x to support the docker compose command
  • Use either docker-compose (standalone, without docker) or podman-compose (untested)
  • Make sure you have the podman dnsname plugin installed and configured
  • Make sure you have docker aliased to podman (podman-docker might help)
  • Before running npm run dev, make sure to export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock (this will be fixed in a future version of podman - Use url with scheme and path for the unix address containers/podman#19917 (comment))

@chmanie chmanie marked this pull request as ready for review November 13, 2023 18:06
@chmanie chmanie force-pushed the maintenance/fix-docker-permissions branch from 8bb5a92 to 49e475d Compare November 13, 2023 18:06
ink-pot-monkey
ink-pot-monkey previously approved these changes Nov 13, 2023
Copy link
Contributor

@ink-pot-monkey ink-pot-monkey left a comment

Choose a reason for hiding this comment

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

Works for me, nice work 🚀

Copy link
Contributor

@ArmandoGraterol ArmandoGraterol left a comment

Choose a reason for hiding this comment

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

As the President of the "Colony Devs with Mac" association, I approve this PR

@chmanie chmanie force-pushed the maintenance/fix-docker-permissions branch from 49e475d to 9f1c6c9 Compare November 14, 2023 09:06
Copy link
Member

@arrenv arrenv left a comment

Choose a reason for hiding this comment

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

Local dev environment is working for me.

@ink-pot-monkey ink-pot-monkey self-requested a review November 14, 2023 09:54
@chmanie chmanie merged commit 5542129 into master Nov 14, 2023
1 of 2 checks passed
@chmanie chmanie deleted the maintenance/fix-docker-permissions branch November 14, 2023 09:59
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.

4 participants