Commit 4e0cbe67 authored by Carina Antunes's avatar Carina Antunes
Browse files

Update README.md

parent e6c7a080
......@@ -9,34 +9,37 @@ documents and search among them when needed!
# Local Development options
## Docker (recommended)
- **Docker (recommended)**
1. Run `make env MODE=test`
2. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
3. Chrome https://localhost
Read more on the makefile.
## docker + pipenv: Read more on the makefile
- **Docker + Pipenv: Read more on the makefile**
1. Run `make local-env MODE=test`
2. Follow [instructions](#tls---how-to-install-certificate) to install certificate.
## [NOTE: CERN ADMINS ONLY] - Docker (connected to cern sso)
## [NOTE: CERN ADMINS ONLY]
- **Docker (connected to cern sso)**
1. Use Teigi to obtain oauth credentials
`tbag show --hg cernsearch oauth_dev-cern-search`
2. Edit `.env-staging` and edit `INVENIO_CERN_APP_CREDENTIALS`: replace in `secret` with the key you obtained.
2. Open `.env-staging` and edit `INVENIO_CERN_APP_CREDENTIALS`: replace `secret` with the key you just obtained.
3. Edit /etc/hosts and add line:
`127.0.0.1 dev-cern-search.web.cern.ch`
4. Edit docker-compose.test.yml and add `- .env-staging` under:
4. Edit docker-compose.test.yml and add `- .env-staging` under `env_file`:
```
```yaml
env_file:
- .env
- .env-staging
```
5. Run `make env-staging MODE=test`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment