Open canglongxiang opened 7 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.
I see the same problem. Is it repo maintaining? Last commit was one year ago.
+1, also getting the chmod: cannot access 'cas-overlay/mvnw': No such file or directory
error after following the official docs
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 \
GitHubApereo CAS WAR Overlay template. Contribute to apereo/cas-overlay-template development by creating an account on GitHub.
Thanks @mdamour1976, that worked :)
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".