Skip to content

Commit

Permalink
PB-974: secrets.yml and README.md
Browse files Browse the repository at this point in the history
Adapted the secrets.yml for local development to use the new secrets.
Adapted Readme.md accordingly.
  • Loading branch information
hansmannj committed Dec 10, 2024
1 parent 94cf7bf commit baf5ce5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ make setup
Build the Pylons settings files and run the local `waitress` server

```bash
summon make serve
summon -p ssm make serve
```

You may want to customize the variables. Copy the file `.env.default` as `.ven.mine`,
change the variables you want and use them with

```bash
summon make ENV_FILE=.env.mine serve
summon -p ssm make ENV_FILE=.env.mine serve
```

:book: You need some external ressource to run the service, see [External ressources dependencies](#external-ressources-dependencies)
Expand All @@ -71,7 +71,7 @@ You can use the ssh port forwarding feature to have access to `pg-geodata-replic
ssh ssh0a.prod.bgdi.ch -L 5432:pg-geodata-replica.bgdi.ch:5432
```

Then set the `DBHOST` environment variable to `localhost` (you can do this in your own environment file e.g. `.env.mine` and run the make file as follow: `summon make ENV_FILE=.env.mine serve`)
Then set the `DBHOST` environment variable to `localhost` (you can do this in your own environment file e.g. `.env.mine` and run the make file as follow: `summon -p ssm make ENV_FILE=.env.mine serve`)

### S3 Vector Bucket Access

Expand All @@ -96,7 +96,7 @@ make dockerbuild
### Docker run locally

```bash
summon make dockerrun
summon -p ssm make dockerrun
```

:book: You need some external ressource to run the service, see [External ressources dependencies](#external-ressources-dependencies)
Expand Down Expand Up @@ -130,19 +130,19 @@ See [External Ressources Dependencies](#external-ressources-dependencies) for mo
To run the tests enter

```bash
summon make test
summon -p ssm make test
```

Or if you use your own environment file

```bash
summon make ENV_FILE=.env.mine test
summon -p ssm make ENV_FILE=.env.mine test
```

**:warning: If you don't have AWS Access you can disable the S3 tests as follow**

```bash
summon make S3_TESTS=0 test
summon -p ssm make S3_TESTS=0 test
```

## Download WMS image legends
Expand Down
6 changes: 3 additions & 3 deletions secrets.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
OPENTRANS_API_KEY: !var infra-gopass-bgdi/mf-chsdi3/OPENTRANS_API_KEY password
PGUSER: !var infra-gopass-bgdi/mf-chsdi3/PG PGUSER
PGPASSWORD: !var infra-gopass-bgdi/mf-chsdi3/PG PGPASSWORD
PGUSER: !var /amazon-rds/geodata-master/www-data/user --profile swisstopo-bgdi
PGPASSWORD: !var /amazon-rds/geodata-master/www-data/password --profile swisstopo-bgdi
OPENTRANS_API_KEY: !var /opentransportdata.swiss/swisstopo/tokens/departure_board --profile swisstopo-bgdi

0 comments on commit baf5ce5

Please sign in to comment.