Open karstengresch opened 7 years ago
As the md5 of redhat1! is
c4df094e0bf5bc1c471423c4f356e902
on several *ix-systems tested, I assume the password in the documentation is not correct.
Same issue here!
Found out the issue is related to the pipeline defined in cicd-template.yaml
from https://github.com/OpenShiftDemos/openshift-cd-demo. The Jenkinsfile 'Deploy DEV' stage is not placing creating the configuration directory (containing the users/roles) into the right directory structure within the oc-build
directory. This is where the WAR is copied to and the configuration directory needs to be at the same level for the binary build to work as expected and place the configuration files in the right EAP_HOME/standalone/configuration
directory within the container.
oc-build ----ROOT.war ----configuration --------application-roles.properties --------application-users.properties
I simply changed the Jenkinsfile DEV stage from:
stage ('Deploy DEV') {
sh "rm -rf oc-build && mkdir -p oc-build/deployments"
sh "cp target/openshift-tasks.war oc-build/deployments/ROOT.war"
sh "oc project ${DEV_PROJECT}"
to
stage ('Deploy DEV') {
sh "rm -rf oc-build && mkdir -p oc-build/configuration"
sh "cp target/openshift-tasks.war oc-build/ROOT.war"
sh "cp configuration/*.properties oc-build/configuration"
sh "oc project ${DEV_PROJECT}"
Hope this helps
@redlumxn send a PR for this! ;-)
Followed the instructions from https://github.com/OpenShiftDemos/openshift-cd-demo which I finally got running locally with oc cluster up (setup and config see here: ).
Tried to create a task:
Result:
Just to let you know...