Skip to content

Commit

Permalink
fix the new makefile on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Sep 17, 2020
1 parent 22c4d8f commit b72fc3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ test-quick: .env
# This rule creates a file named .env that is used by docker-compose for passing
# the USER_ID and GROUP_ID arguments to the Docker image.
.env:
@touch .env
ifneq ($(OS),Windows_NT)
ifneq ($(shell uname -s), Darwin)
@echo USER_ID=$(shell id -u) > .env
@echo GROUP_ID=$(shell id -g) >> .env
endif
endif
@time docker-compose build

clean:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ services:
dockerfile: Dockerfile
args:
# Run `make .env` to set $USER_ID and $GROUP_ID
USER_ID: ${USER_ID}
GROUP_ID: ${GROUP_ID}
USER_ID: ${USER_ID:-}
GROUP_ID: ${GROUP_ID:-}
command: "/root/.virtualenvs/dbt/bin/pytest"
env_file:
- ./test.env
Expand Down

0 comments on commit b72fc3c

Please sign in to comment.