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
8080
and8443
- The image may be accessed via the host browser
- The build will automatically copy the contents of the
src\main\webapp
to 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/hosts
using the following command line instructionsudo echo "$(docker-machine ip) docker.local" > /etc/hosts
- update
- You can install
etc/jetty.cer
in your prefered browser so that it recognizes the self-signed certificate.- MacOSX instructions
- On MacOsX just run
open etc/jetty.cer
- The
KeyChain
opens and asks to import file - Choose
System
- Search for
docker.local
and 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.sh
You 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