Skip to content

Commit

Permalink
Merge pull request #135 from cznethub/move-env
Browse files Browse the repository at this point in the history
read .env file from parent dsp repo
  • Loading branch information
sblack-usu authored Sep 27, 2022
2 parents 7eff226 + 2315e83 commit 2ac6fb0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 67 deletions.
66 changes: 0 additions & 66 deletions .env

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Download default .env file
run: make default-env

- name: Build containers
run: make build

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ db-data
.coverage
htmlcov/
dspback/schemas/*/model.py
.env
1 change: 0 additions & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ WORKDIR /dspback

COPY requirements.txt requirements.txt
COPY requirements-dev.txt requirements-dev.txt
COPY .env .env

RUN pip install -r requirements.txt
RUN pip install -r requirements-dev.txt
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ test-cov:
test-cov-gh-action:
docker exec dsp_dev_dspback pytest tests --cov=dspback --cache-clear > pytest-coverage.txt

.PHONY: default-env
default-env:
wget -N https://raw.githubusercontent.com/cznethub/dsp/develop/.env

.PHONY: up
up:
docker-compose --env-file .env up dspback database
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
dspfront:
image: dspfront
container_name: dsp_dev_dspfront
volumes:
- ./../.env:/dspfront/.env
ports:
- 5001:5001
restart: unless-stopped
Expand Down

0 comments on commit 2ac6fb0

Please sign in to comment.