Create a folder to hold the Fiosan repos (e.g. $HOME/Documents/fiosan
). We will call this path $FIOSAN_ROOT
.
There are two ways to set up a basic instance of CAS: Docker Image (requires CPP account) or from scractch using uPortal-start.
Download the uP-start-cas Docker image from https://livecsupomona-my.sharepoint.com/:u:/g/personal/jmt_cpp_edu/EYWW_5JEqexKvK-0J6Y31-oBKdFghiQeOe2SI_WkZ8Wa4Q?e=29f5d0
Import the image:
# docker image load < uP-start-cas.tar.gz
Start a container with the newly imported container:
# docker run -d -p 8080:8080 --name uP-start-cas aee4831ecacd
This container takes some time to start. Once it's ready, CAS will be available at http://localhost:8080/cas
The following commands will clone the uPortal-start repo, start HSQL, deploy CAS, and initalize the HSQL database while not deploying the uPortal itself into Tomcat.
$ cd $FIOSAN_ROOT
$ git clone git@github.com:Jasig/uPortal-start.git
$ cd uPortal-start
$ ./gradlew hsqlStart tomcatInstall overlays:cas:tomcatDeploy
$ ./gradlew -Dserver.home=.gradle/tmp -Dportal.home=.gradle/tomcat/portal overlays:uPortal:dataInit
Start Tomcat with the following command
$ cd $FIOSAN_ROOT/uPortal-start
$ .gradle/tomcat/bin/catalina run
$ cd $FIOSAN_ROOT
$ git clone git@github.com:drewwills/notification-ms.git -b restore-oauth2
$ git clone git@github.com:drewwills/notification-ui.git -b restore-oauth2
See notification-ui/README.git
for the Docker command to start MSSQL.
$ cd $FIOSAN_ROOT/notificaion-ms
$ mvn -Drun.jvmArguments="-Duk.ac.ed.notify.security.basicAuthPassword=CHANGEME" clean spring-boot:run
$ cd $FIOSAN_ROOT/notification-ui
Apply the changes from notification-ui-required.diff
. Optionally, apply the changes from notification-ui-optional.diff
to remove UoE-specific elements.
Start the UI
$ mvn -Drun.jvmArguments="-Duk.ac.ed.notify.security.basicAuthPassword=CHANGEME" clean spring-boot:run
If everything is working the way it should, you should be able to browse to http://localhost:8090
and authenticate as admin/admin
.