Skip to content

Commit

Permalink
fix docker permissions issue due to mounting volume
Browse files Browse the repository at this point in the history
  • Loading branch information
edouard-lopez committed Nov 27, 2020
1 parent 4f1ee51 commit f474fbb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ build-pure-on:
--tag=pure-on-fish-${FISH_VERSION} \
./

.PHONY: test-pure-on
test-pure-on: export CMD=fishtape tests/*.test.fish # can be overriden by user
test-pure-on:
@$(MAKE) dev-pure-on # ${CMD} is passed along

.PHONY: dev-pure-on
dev-pure-on: CMD?=fish
dev-pure-on:
Expand All @@ -36,3 +31,14 @@ dev-pure-on:
--tty \
--volume=$$(pwd):/tmp/.pure/ \
pure-on-fish-${FISH_VERSION} "${CMD}"

# Don't override COPY directive as `--volume` doesnt play nice with Travis
.PHONY: test-pure-on
test-pure-on: export CMD=fishtape tests/*.test.fish # can be overriden by user
test-pure-on:
docker run \
--name run-pure-on-${FISH_VERSION} \
--rm \
--interactive \
--tty \
pure-on-fish-${FISH_VERSION} "${CMD}"

0 comments on commit f474fbb

Please sign in to comment.