Hi Andy,

I have tried with provided steps by you but still getting the same error
message.

added the files to my Dockerfile like below

FROM apereo/cas:v5.2.6
# A keypair is needed for SSL, and CAS simply will not work if you can't do
SSL regardless of whether you actually need it.
RUN keytool -genkeypair -alias cas -keyalg RSA
**************************************************************************

RUN mkdir -p /cas-overlay/src/main/resources/
RUN cd /cas-overlay/src/main
RUN mkdir -p my/company/cas/rest/

COPY spring.factories /cas-overlay/src/main/resources/spring.factories
COPY MyCompanyRestConfiguraiton.java
/cas-overlay/src/main/my/company/cas/rest/MyCompanyRestConfiguraiton.java
COPY MyCompanyTicketGrantingTicketResourceGetMapper.java
/cas-overlay/src/main/my/company/cas/rest/MyCompanyTicketGrantingTicketResourceGetMapper.java
COPY cas.properties /cas-overlay/etc/cas/config/cas.properties
COPY pom.xml /cas-overlay/pom.xml
COPY JWTServices.json /cas-overlay/etc/cas/services/JWTServices.json
COPY log4j2.xml /cas-overlay/etc/cas/config/log4j2.xml
COPY run-cas.sh cas-overlay/bin/run-cas.sh
COPY build.sh /cas-overlay/build.sh

Can you let me know if I have missed any steps or please provide the steps
as per the setup so that i can place these three files in appropriate
folder.

Regards,
Raheem Shaik




On Mon, Dec 16, 2019 at 2:55 PM Raheem Shaik <[email protected]> wrote:

> Hi Andy,
>
> Thanks for providing the steps, i will try to implement provided steps.
>
> Below is the process we are following
> # docker pull apereo/cas:v5.2.6 - > you will get the docker image
> After that I am following the steps provided by cas-overlay-template
> https://github.com/apereo/cas-overlay-template/tree/5.2  to build my own
> image.
>
> In my project code in Dockerfile is like beowFROM apereo/cas:v5.2.6
> RUN keytool -genkeypair -alias cas -keyalg RSA *************************
>
> COPY cas.properties /cas-overlay/etc/cas/config/cas.properties
> COPY pom.xml /cas-overlay/pom.xml
> COPY JWTServices.json /cas-overlay/etc/cas/services/JWTServices.json
> COPY log4j2.xml /cas-overlay/etc/cas/config/log4j2.xml
> COPY run-cas.sh cas-overlay/bin/run-cas.sh
> COPY build.sh /cas-overlay/build.sh
>
> If possible please provide me the steps as per above steup
>
>
>
>
>
> Regards,
> Raheem Shaik
>
>
>
> On Mon, Dec 16, 2019 at 2:27 PM Andy Ng <[email protected]> wrote:
>
>> Hi Raheem,
>>
>> Where did you find the public CAS 5.2.x docker image?
>>
>> In any case, since you are able to create file and put it in the
>> structure, maybe the following will work:
>> ==================================================
>> - Put a spring.factories in the following directory:
>> your_project/src/main/resources/spring.factories
>>
>> org.springframework.boot.autoconfigure.EnableAutoConfiguration=my.company.cas.rest.MyCompanyRestConfiguraiton.java
>> ==================================================
>> - Put the Java file in place
>> *your_project*
>> /src/main/my/company/cas/rest/MyCompanyRestConfiguraiton.java
>> *your_project*
>> /src/main/my/company/cas/rest/MyCompanyTicketGrantingTicketResourceGetMapper.java
>>
>> ==================================================
>> Then the logic should be activated.
>>
>> As for where is the `*your_project*` directory located when using
>> docker, I don't know specifically since I don't know the "docker image
>> v5.2.6 from publicly".
>> If you cannot locate `your_project`, please provide this  "docker image
>> v5.2.6 from publicly" so I can point you to the correct directory..
>>
>> See if the above helps...
>>
>> Cheers!
>> - Andy
>>
>> --
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/36b21d1f-6eca-4697-85da-765c03e3ce29%40apereo.org
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/36b21d1f-6eca-4697-85da-765c03e3ce29%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 


********************************************



 

*Inmar Confidentiality 
Note*:  This e-mail and any attachments are confidential and intended to be 
viewed and used solely by the intended recipient.  If you are not the 
intended recipient, be aware that any disclosure, dissemination, 
distribution, copying or use of this e-mail or any attachment is 
prohibited.  If you received this e-mail in error, please notify us 
immediately by returning it to the sender and delete this copy and all 
attachments from your system and destroy any printed copies.  Thank you for 
your cooperation.



 

*Notice of Protected Rights*:  The removal of any 
copyright, trademark, or proprietary legend contained in this e-mail or any 
attachment is prohibited without the express, written permission of Inmar, 
Inc.  Furthermore, the intended recipient must maintain all copyright 
notices, trademarks, and proprietary legends within this e-mail and any 
attachments in their original form and location if the e-mail or any 
attachments are reproduced, printed or distributed.

 


********************************************

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD_gEK5SjStp%2BJxfuXiAvFoLFZ5S5aKBrbb9CNrQXpuC%3D2R46w%40mail.gmail.com.

Reply via email to