Skip to content

Commit

Permalink
mount PACTA_DATA_PATH as sub-directory of /pacta-data/ (#72)
Browse files Browse the repository at this point in the history
* add an outputs directory

* add config name to outputs sub-directory name

* mount `PACTA_DATA_PATH` as sub-directory of `/pacta-data/`

* Update README.md

* Update README.md

* Update docker-compose.yml

* Update prepare_pacta_indices.R

* Update prepare_pacta_indices.R
  • Loading branch information
cjyetman authored Feb 27, 2024
1 parent 325e69b commit 89bcbb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ The simplest way to run the data preparation process is by using docker.
First, create a `.env` file in the root directory with the following fields:

``` env
PACTA_DATA_PATH=PATH/TO/pacta-data
PACTA_DATA_PATH=PATH/TO/PACTA/DATA/DIR
R_CONFIG_ACTIVE=YYYYQQ
```
The `R_CONFIG_ACTIVE` variable should point to the appropriate set of
configuration values specified in the `config.yml` file.

The `PACTA_DATA_PATH` variable should point to an appropriate directory with read access on the host system that contains a version of the PACTA analysis inputs for the desired quarter.

Once these variables have been set, simply run

``` bash
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ services:
env_file:
- .env
volumes:
- ${PACTA_DATA_PATH}:/pacta-data
- ${PACTA_DATA_PATH}:/pacta-data/${R_CONFIG_ACTIVE}

0 comments on commit 89bcbb5

Please sign in to comment.