This branch hosts the Docker build configuration to run CAS with predefined users over http or https. See the Dockerfile for more info.
This README.md was changed by https://github.com/sergiofbsilva. Use it at your own risk.
- Minimum of Docker version
1.9.x
- The image will be available on the host via ports
8080and8443 - The image may be accessed via the host browser
- The build will automatically copy the contents of the
src\main\webappto the docker image.
- The default keystore is
etc/thekeystore. - The password for the keystore is
changeit. - It has a self-signed certificate for the name
docker.local- update
/etc/hostsusing the following command line instructionsudo echo "$(docker-machine ip) docker.local" > /etc/hosts
- update
- You can install
etc/jetty.cerin your prefered browser so that it recognizes the self-signed certificate.- MacOSX instructions
- On MacOsX just run
open etc/jetty.cer - The
KeyChainopens and asks to import file - Choose
System - Search for
docker.localand double-click it - Expand
Trust+ SSL , set always trust
- On MacOsX just run
- MacOSX instructions
#docker run -p 8080:8080 -p 8443:8443 -d --name="cas" sergiofbsilva/cas-dev ./run.shYou can login using any of the users defined in cas.properties. Just search for the following line if you need to change it
#accept.authn.users=user1::password1,user2::password2 ... accept.authn.users=admin1::admin1,admin2::admin2,admin3::admin3 This setup accepts any service URL (http or https)
https://docker.local:8443/cas/login?service=https://localhost:8443/login/cas