cas-webapp-docker icon indicating copy to clipboard operation
cas-webapp-docker copied to clipboard

Run build.sh with errors

Open canglongxiang opened this issue 7 years ago • 5 comments

I followed document to run "./build.sh 5.1.2", there is some errors and I don't know how to reslove them, so I just comment it in "Dockerfile". Error info are below:

`Step 12/18 : RUN chmod -R 750 cas-overlay/bin && chmod 750 cas-overlay/mvnw && chmod 750 cas-overlay/build.sh && chmod 750 /opt/jre-home/bin/java; ---> Running in a4e36a0a070d

chmod: cannot access 'cas-overlay/mvnw': No such file or directory

chmod: cannot access 'cas-overlay/build.sh': No such file or directory`

Also I comment the command "RUN ./mvnw clean package -T 10".

canglongxiang avatar Aug 08 '17 03:08 canglongxiang

It looks like the cas-overlay-template used maven before. This is the old template.

I tried changing this to RUN ./build.sh run but it broke ( org/apereo/cas/web/CasWebApplication has been compiled by a more recent version of the Java Runtime) and it might break on old versions of the cas-overlay.

retpolanne avatar Aug 23 '18 14:08 retpolanne

I see the same problem. Is it repo maintaining? Last commit was one year ago.

seregayoga avatar Sep 28 '18 09:09 seregayoga

+1, also getting the chmod: cannot access 'cas-overlay/mvnw': No such file or directory error after following the official docs

njwest avatar Oct 08 '18 04:10 njwest

In Dockerfile just add --branch 5.3 for git clone: && git clone --depth 1 --single-branch --branch 5.3 https://github.com/apereo/cas-overlay-template.git cas-overlay \

GitHub
Apereo CAS WAR Overlay template. Contribute to apereo/cas-overlay-template development by creating an account on GitHub.

mdamour1976 avatar Dec 14 '18 19:12 mdamour1976

Thanks @mdamour1976, that worked :)

marcoam avatar Feb 22 '19 21:02 marcoam