Skip to content

Commit

Permalink
Merge pull request #211 from italia/dev
Browse files Browse the repository at this point in the history
Docker examples and docs
  • Loading branch information
peppelinux committed Mar 31, 2022
2 parents c09724d + 389fb5c commit ef43f33
Show file tree
Hide file tree
Showing 3 changed files with 2,708 additions and 395 deletions.
31 changes: 13 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ Read the [setup documentation](docs/SETUP.md) to get started.

Install Docker using the packages distributed from the official website and the following tools.
````
apt install jq
pip install docker-compose
sudo apt install jq
sudo pip install docker-compose
````

Please do your customizations in each _settingslocal.py_ files and/or in the example dumps json file.
Expand Down Expand Up @@ -115,42 +115,37 @@ export SUB_RP='s\http://127.0.0.1:8001/\http://relying-party.org:8001/\g'
In our example we rename:

- http://127.0.0.1:8000 to http://trust-anchor.org:8000/


````
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/federation_authority/dumps/example.json > $TARGET_PATH_AT/dumps/example.json
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/federation_authority/federation_authority/settingslocal.py.example > $TARGET_PATH_AT/federation_authority/settingslocal.py
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/federation_authority/dumps/example.json > $TARGET_PATH_AT/dumps/example.json
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/federation_authority/federation_authority/settingslocal.py.example > $TARGET_PATH_AT/federation_authority/settingslocal.py
````
- http://127.0.0.1:8001 to http://relying-party.org:8001/

- http://127.0.0.1:8001 to http://relying-party.org:8001/
```
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/relying_party/dumps/example.json > $TARGET_PATH_RP/dumps/example.json
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/relying_party/relying_party/settingslocal.py.example > $TARGET_PATH_RP/relying_party/settingslocal.py
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/relying_party/dumps/example.json > $TARGET_PATH_RP/dumps/example.json
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/relying_party/relying_party/settingslocal.py.example > $TARGET_PATH_RP/relying_party/settingslocal.py
```

- http://127.0.0.1:8002 to http://cie-provider.org:8002/

```
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/provider/dumps/example.json > $TARGET_PATH_OP/dumps/example.json
sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/provider/provider/settingslocal.py.example > $TARGET_PATH_OP/provider/settingslocal.py
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/provider/dumps/example.json > $TARGET_PATH_OP/dumps/example.json
sudo sed -e $SUB_AT -e $SUB_RP -e $SUB_OP examples/provider/provider/settingslocal.py.example > $TARGET_PATH_OP/provider/settingslocal.py
```


Feel free to customize the example data and settings. then check if everything is ok, for example:
````
sudo su
ls $TARGET_PATH_AT
ls $TARGET_PATH_RP
ls $TARGET_PATH_OP
sudo ls $TARGET_PATH_AT
sudo ls $TARGET_PATH_RP
sudo ls $TARGET_PATH_OP
````

Run the stack
````
docker-compose up
sudo docker-compose up
````

Configure a proper DNS resolution for trust-anchor.org. In GNU/Linux we can configure it in `/etc/hosts`:

````
127.0.0.1 localhost trust-anchor.org relying-party.org cie-provider.org
````
Expand Down
Loading

0 comments on commit ef43f33

Please sign in to comment.