Skip to content

Commit

Permalink
powerbi: Clarify directory permission requirements for database and b…
Browse files Browse the repository at this point in the history
…uild targets. Move filesystem before cron, as both require same user.
  • Loading branch information
jpmckinney committed Sep 19, 2024
1 parent 63d35ff commit b1f5128
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions powerbi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Lastly, edit the `config.mk` file, as needed.

## Database

Run `make database` as a local user with the [CREATEDB](https://www.postgresql.org/docs/current/sql-createrole.html) privilege (for example, as the `postgres` user):
Run `make database` as any local user with the [CREATEDB](https://www.postgresql.org/docs/current/sql-createrole.html) PostgreSQL privilege (for example, as the `postgres` user), from any directory that contains the `Makefile`, to which the local user has read and execute permissions.

```bash
make -s database
Expand Down Expand Up @@ -68,22 +68,9 @@ This assumes that the local user can authenticate with PostgreSQL without a pass
localhost:5432:cardinal:cardinal:strong-password
```

## Filesystem

Run `make filesystem` from the working directory (the `CARDINAL_WORKDIR` configuration) for the project, as the local user that will run the cron job:

```bash
make -s filesystem
```

This will:

- Create `data`, `logs` and `scratch` directories, owned by the local user, if they don't exist
- Download Cardinal's settings file to `ecuador_sercop_bulk.ini`, owned by the local user

## Docker

Run `make build` from any directory (that contains the `Makefile`).
Run `make build` as any local user, from any directory that contains the `Makefile`, to which the local user has read, write and execute permissions.

This will:

Expand All @@ -105,6 +92,19 @@ The `cardinal-rs` image is for running `ocdscardinal` commands, like:
docker run --rm --name cardinal-rs cardinal-rs --help
```

## Filesystem

Run `make filesystem` from the working directory (the `CARDINAL_WORKDIR` configuration) for the project, as the local user that will run the cron job:

```bash
make -s filesystem
```

This will:

- Create `data`, `logs` and `scratch` directories, owned by the local user, if they don't exist
- Download Cardinal's settings file to `ecuador_sercop_bulk.ini`, owned by the local user

## Cron

Preview the crontab entry:
Expand Down

0 comments on commit b1f5128

Please sign in to comment.