Skip to content

Commit

Permalink
Rename stencil and Docker envs to env.template and env.docker res…
Browse files Browse the repository at this point in the history
…pectively
  • Loading branch information
dhruvkb committed Sep 28, 2021
1 parent 0fc78d3 commit c3c1d1d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Run API tests
working-directory: ./openverse_api
env:
PIPENV_DOTENV_LOCATION: ./.env.stencil
PIPENV_DOTENV_LOCATION: ./env.template
run: pipenv run test/run_test.sh
- name: Run analytics tests
working-directory: ./analytics
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This repository is primarily concerned with back end infrastructure like datasto
cd openverse-api/
```

3. From the monorepo root, bring up the Docker Compose system. Docker Compose will automatically read the necessary environment variables from `.env.docker` files from project directories.
3. From the monorepo root, bring up the Docker Compose system. Docker Compose will automatically read the necessary environment variables from `env.docker` files from project directories.
```bash
just up
```
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- "5432:5432"
env_file:
- postgres/.env.docker
- postgres/env.docker
healthcheck:
test: "pg_isready -U deploy -d openledger"

Expand All @@ -22,7 +22,7 @@ services:
volumes:
- ./sample_data:/sample_data
env_file:
- postgres/.env.docker
- postgres/env.docker
healthcheck:
test: "pg_isready -U deploy -d openledger"

Expand Down Expand Up @@ -59,7 +59,7 @@ services:
- es
- cache
env_file:
- openverse_api/.env.docker
- openverse_api/env.docker
stdin_open: true
tty: true

Expand All @@ -80,7 +80,7 @@ services:
volumes:
- ./ingestion_server:/ingestion_server
env_file:
- ingestion_server/.env.docker
- ingestion_server/env.docker
stdin_open: true
tty: true

Expand All @@ -96,7 +96,7 @@ services:
volumes:
- ./ingestion_server:/ingestion_server
env_file:
- ingestion_server/.env.docker
- ingestion_server/env.docker
stdin_open: true
tty: true

Expand Down
2 changes: 1 addition & 1 deletion ingestion_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ will be `"INGEST_UPSTREAM"`.

## Configuration

All configuration is performed through environment variables. See the `.env.stencil` file for a comprehensive list of all environment variables. The ones with sane defaults have been commented out.
All configuration is performed through environment variables. See the `env.template` file for a comprehensive list of all environment variables. The ones with sane defaults have been commented out.

Pipenv will automatically load `.env` files when running commands with `pipenv run`.

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ logs services="":

# Create .env files from stencils
env:
cp openverse_api/.env.stencil openverse_api/.env
cp ingestion_server/.env.stencil ingestion_server/.env
cp openverse_api/env.template openverse_api/.env
cp ingestion_server/env.template ingestion_server/.env

# Load sample data into the Docker Compose services
init: up
Expand Down
2 changes: 1 addition & 1 deletion openverse_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can view the custom administration views at the `/admin/` endpoint. You can

## Configuration

All configuration is performed through environment variables. See the `.env.stencil` file for a comprehensive list of all environment variables. The ones with sane defaults have been commented out.
All configuration is performed through environment variables. See the `env.template` file for a comprehensive list of all environment variables. The ones with sane defaults have been commented out.

Pipenv will automatically load `.env` files when running commands with `pipenv run`.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c3c1d1d

Please sign in to comment.