Skip to content

Use Z flag on volumes in docker compose for airflow#271

Merged
schnie merged 1 commit intomasterfrom
add-selinux-label
Aug 15, 2019
Merged

Use Z flag on volumes in docker compose for airflow#271
schnie merged 1 commit intomasterfrom
add-selinux-label

Conversation

@andriisoldatenko
Copy link
Contributor

@andriisoldatenko andriisoldatenko commented Aug 15, 2019

Addresses #263.

@andriisoldatenko
Copy link
Contributor Author

copy from #268

@andriisoldatenko
Copy link
Contributor Author

andriisoldatenko commented Aug 15, 2019

Test case:

  • install astro cli
  • astro airflow start/stop edit dag start/stop
  • see changes on UI

tested on OSX seems works

      {
        "Type": "volume",
        "Name": "ttt973993_airflow_logs",
        "Source": "/var/lib/docker/volumes/ttt973993_airflow_logs/_data",
        "Destination": "/usr/local/airflow/logs",
        "Driver": "local",
        "Mode": "z",
        "RW": true,
        "Propagation": ""
      }

tested on Windows, no issues:

            {
                "Type": "bind",
                "Source": "/host_mnt/c/workspace/src/github.com/astronomer/demo/include",
                "Destination": "/usr/local/airflow/include",
                "Mode": "Z",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "volume",
                "Name": "demo94f473_airflow_logs",
                "Source": "/var/lib/docker/volumes/demo94f473_airflow_logs/_data",
                "Destination": "/usr/local/airflow/logs",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            }

@schnie schnie merged commit 3203c4e into master Aug 15, 2019
@schnie schnie deleted the add-selinux-label branch August 15, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants