Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from OpenConext/feature/update-documentation
Browse files Browse the repository at this point in the history
Update documentation with latest changes
  • Loading branch information
pablothedude authored Mar 10, 2021
2 parents 05435f6 + d3daf07 commit 3d88fc8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ APP_SECRET=secret
# APP_OPAQUE_ID=
# APP_READID_SERVER_FQDN=
# APP_WEBHOOK_TOKEN=
# APP_ATTRIBUTES_MAPPING='{}'
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,24 @@ Install
1. Edit the `.env` file with the editor of your choice and:
1. Update the `APP_SECRET` to a value of your liking. See [Symfony docs](https://symfony.com/doc/current/reference/configuration/framework.html#secret) for more details about this secret.
1. Set the `APP_ENV` to 'dev'
1. Set the `APP_ATTRIBUTES_MAPPING` with a json key value pair:

```'{"readIdAttribute1":"samlAttribute1", "readIdAttribute1":"samlAttribute1"}'```

**Copy the parameters.yaml**

`$ cp config/packages/parameters.yaml.dist config/packages/parameters.yaml`

**Bring up Docker**

The scrip below will also install the required Yarn and Composer development dependencies and finally build the Encore web assets.
```
$ ./support/docker/init.sh
```

If everything goes as intended, you can develop in the virtual machine.
If everything goes as intended, you can develop in the container.

The machine should be available at: [127.43.33.34:443](https://127.43.33.34:443). Feel free to add a `hosts` file entry,
The container should be available at: [127.43.33.34:443](https://127.43.33.34:443). Feel free to add a `hosts` file entry,
I used:

[readid.stepup.example.com](https://readid.stepup.example.com)
Expand Down Expand Up @@ -99,6 +103,5 @@ Please read: https://github.com/OpenConext/Stepup-Deploy/wiki/Release-Management
Other resources
======================

- [Developer documentation](docs/index.md)
- [Issue tracker](https://www.pivotaltracker.com/n/projects/1163646)
- [License](LICENSE)
11 changes: 11 additions & 0 deletions support/docker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ gid=$(id -g)
printf "UID=${uid}\nGID=${gid}\nCOMPOSE_PROJECT_NAME=readid" > .env

docker-compose up -d

# Install backend dependencies
docker-compose exec -T php-fpm.readid.stepup.example.com bash -c '
composer install -n
'

# Install frontend dependencies
docker-compose exec -T php-fpm.readid.stepup.example.com bash -c '
yarn install --frozen-lockfile
yarn dev
'

0 comments on commit 3d88fc8

Please sign in to comment.