apereo / cas-webapp-docker

Apereo CAS Server web application running inside a docker container.
https://hub.docker.com/r/apereo/cas/
Apache License 2.0
117 stars 88 forks source link

Run build.sh with errors #16

Open canglongxiang opened 7 years ago

canglongxiang commented 7 years ago

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".

retpolanne commented 6 years ago

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.

seregayoga commented 5 years ago

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

njwest commented 5 years ago

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

mdamour1976 commented 5 years ago

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-overlay-template
Apereo CAS WAR Overlay template. Contribute to apereo/cas-overlay-template development by creating an account on GitHub.
marcoam commented 5 years ago

Thanks @mdamour1976, that worked :)