summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md35
1 files changed, 12 insertions, 23 deletions
diff --git a/README.md b/README.md
index fab1c2b..89aea33 100755
--- a/README.md
+++ b/README.md
@@ -35,41 +35,30 @@ the 2.x version.
# Testing
-run.sh
+The NORDUnet configuration requires that you can reach `ldap.nordu.net`, so make sure you can reach that. E.g. I need to be on VPN to access it.
-```
-#docker build -t $(basename $(pwd)) . && docker run -p80:80 -p 443:443 --rm -ti $(basename $(pwd))
-# shibboleth-docker
-docker build -t $(basename $(pwd)) . && docker run --rm -ti --name shibboleth-docker $(basename $(pwd))
-```
+Add the following to your `/etc/hosts` file:
```
-# Apache SP
-docker build -t $(basename $(pwd)) . && docker run --rm -ti -p80:80 -p 443:443 -e SP_HOSTNAME=sp.nordu.dev --link shibboleth-docker $(basename $(pwd))
+127.0.0.1 idp.nordu.dev sp.nordu.dev
```
-```
-hlk@bujin:hlk$ cat /etc/hosts
-##
-# Host Database
-#
-# localhost is used to configure the loopback interface
-# when the system is booting. Do not change this entry.
-##
-127.0.0.1 localhost
-255.255.255.255 broadcasthost
-::1 localhost
+Then you can use docker compose to build and start the containers.
-127.0.0.1 idp.nordu.dev sp.nordu.dev
+```
+docker-compose -f compose-dev.yml up --build
```
-Then you should be able to go to: https://sp.nordu.dev/secure/
+When everything has started you need to add the SP metadata to the IdP, this can be done by running:
-Getting metadata out from the Apache SP
```
- curl -k https://sp.nordu.dev/Shibboleth.sso/Metadata > sp-metadata.xml
+curl -k https://sp.nordu.dev/Shibboleth.sso/Metadata -o data/idp/metadata/sp-metadata.xml
+dokcer-compose -f compose-dev.yml restart shibboleth-docker
```
+Now you should be able to navigate to `https://sp.nordu.dev/secure/` where you should be prompted to log in.
+
+
# Resources
Links from Jesper Rosenkilde