Skip to content

Commit

Permalink
Problem:
Browse files Browse the repository at this point in the history
In ansible-pulp CI, pip builds often fail to access .so files under /tmp

Solution: Mount /tmp with exec in molecule.yml per:
docker/compose#1339 (comment)

fixes: #6266
  • Loading branch information
mikedep333 committed Mar 2, 2020
1 parent 1c7b881 commit 0ff40b9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion molecule/default-upgrade/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down
4 changes: 3 additions & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down
4 changes: 3 additions & 1 deletion molecule/dynamic/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down
4 changes: 3 additions & 1 deletion molecule/source-dynamic/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down
4 changes: 3 additions & 1 deletion molecule/source-upgrade/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down
4 changes: 3 additions & 1 deletion molecule/source/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ lint: |
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
# Fixes issues accessing .so files under /tmp during pip builds.
# https://github.com/docker/compose/issues/1339
- /tmp:exec,mode=1777
- /run
- /run/lock
capabilities:
Expand Down

0 comments on commit 0ff40b9

Please sign in to comment.