jboss-dockerfiles / business-central

MIT License
44 stars 65 forks source link

kie-server try to requesting the https://repository.jboss.org:443 server while creating container #103

Closed kanic1111 closed 2 years ago

kanic1111 commented 2 years ago

issue 2022 7/14 kie server

hello i'm using the docker to deploy the service it was all fine until i try to deploy my project when i try to deploy it says successful but while i go to the deploy menu and lick on the server i shows error like this and the remote server show theres no assoicated containers while it suppose to created one so i check the log and found out it trying to request to the https://repository.jboss.org:443 server while the server is already dead i tried many method like change the env,check the config file to see if any file has the repository url in it and non of those works

so my question is where can i change or modify the configuration so it can request to the right server

mbiarnes commented 2 years ago

Hi kanic1111, Could you please explain exactly what you have done? The conf you have and what you have changes etc. Which image(s) exactly did you use?

kanic1111 commented 2 years ago

i changed the standalone-full-kie-server file so i can have my kie-server connect with the business central i also change the http port for the kie-server because seems like it will have port conflict with the bussiness central and the base image i use to extend the container is quay.io/kiegroup/kie-server:latest i also add the ENV change and make the KiE-REPOSITORY the same address as the maven one but it doesn't work

update

i try to change the setting.xml where the id is JBoss Public Repository Group and change the url to apache maven2 it seems like it when creating container it requesting to the right server which is the localhost but it now shows the error about not finding the module

mbiarnes commented 2 years ago

pls look at https://github.com/jboss-dockerfiles/business-central/blob/main/docker-compose-examples/bc-kie-server.yml This is a docker-compose file thta starts business-central &kie-server. Maybe this can help. Which command do you use for starting your business-central & kie-server?

kanic1111 commented 2 years ago

thank you i will check the docker-compose file to see if theres anything i needs to change

the command i use to start the business-central & kie-server are the default setting which is ./start_business-central-wb.sh & ./start_kie-server.sh i also tried the ./start_kie-wb.sh on kie-server but shows the same

mbiarnes commented 2 years ago

hmm - look at: https://github.com/jboss-dockerfiles/business-central/blob/main/.ci/jenkins/Jenkinsfile.update#L127 For doing some Selenium tests there is started a business-central and an associated kie-server (line ·129) using this properties:
https://github.com/jboss-dockerfiles/business-central/blob/main/seleniumTests/src/test/resources/kie-server.properties This works. The only thing to know is the IP_ADDRESS.

kanic1111 commented 2 years ago

i found the solution instead of using the Dockerfile to build my own image i use the docker run -p 8180:8080 -d --name kie-server --link drools-wb:kie-wb jboss/kie-server-showcase:latest to link both container and it works fine

mbiarnes commented 2 years ago

Great. I will close this issue then