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

change direct docker calls to use :rw instead of :z for volume flags #1054

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

rob-1126
Copy link
Contributor

Description

This change improves compatability with podman on OS X.

Changes the volume flags use by astro dev parse and other astro dev commands that directly call docker to not attempt to mount the volume for sharing across multiple containers and to explicitly mount these as read-write instead of read-write shared.

Since these are one-shot containers, this setting will not impact users and will remove attempts to by certain container binaries to set extended attributes which are not valid on OS X.

🧪 Functional Testing

Built from source and ran ~/astro-cli/astro dev parse under podman on OS X.

📸 Screenshots

image

📋 Checklist

  • [ x ] Rebased from the main (or release if patching) branch (before testing)
  • [ x ] Ran make test before taking out of draft (FAILS pre-existing code-coverage tests)
  • [ x ] Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

Changes the volume flags use by astro dev parse and other
astro dev commands that directly call docker to not attempt to
mount the volume for sharing across multiple containers and to
explicitly mount these as read-write instead of read-write shared.

Since these are one-shot containers, this setting will not impact
users and will remove attempts to by certain container binaries to
set extended attributes which are not valid on OS X.

This change improves compatability with podman on OS X.
Copy link
Contributor

@sunkickr sunkickr left a comment

Choose a reason for hiding this comment

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

LGTM. Should I try it out on Docker?

@rob-1126
Copy link
Contributor Author

rob-1126 commented Feb 1, 2023 via email

Copy link
Contributor

@neel-astro neel-astro left a comment

Choose a reason for hiding this comment

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

lgtm

@sunkickr sunkickr merged commit 974e4bd into astronomer:main Feb 2, 2023
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.

3 participants