crossminer / scava-deployment

This repository contains the Docker configuration files for the deployment of Scava platform
Eclipse Public License 2.0
2 stars 9 forks source link

KB configuration issue #3

Closed jdirocco closed 6 years ago

jdirocco commented 6 years ago

Jenkins builds KB service platform at http://ci5.castalia.camp:8080/job/scava-knowledgebase/lastSuccessfulBuild/artifact/knowledge-base/org.eclipse.scava.knowledgebase/target/scava.knoledgebase.jar . KB testing step needs that spring.data.mongodb.host has localhost value in applicacation.properties. Instead, docker kb image needs to set this parameter as KB-db. @MarcioMateus, did you change this value on http://ci3.castalia.camp/dl/scava.knoledgebase.jar ?

jdirocco commented 6 years ago

@MarcioMateus, @tdegueul Could we automate KB build for docker image?

MarcioMateus commented 6 years ago

Hi @md2manoppello

This change was introduced in commit 8fb7d0c4edc757d8de2144488814a92a80176f50

To KB docker image downloads the jar built by Jenkins (configured for the localhost) and updates the application.properties to connect to the KB-db.

I did some small tests, but I would be great id you could do a more extensive testing.

tdegueul commented 6 years ago

Regarding the automatic generation of Docker images from the CI builds, the images are now (automatically?) pushed to https://hub.docker.com/u/crossminer/; @borisbaldassari took care of that. I don't know how this is realized though, as I haven't seen anything new on the CI server.

MarcioMateus commented 6 years ago

@borisbaldassari uses a diferente platform (Codefresh.io) to push the images to Docker Hub. If I am not wrong, it monitors the Git repository and creates the Docker images based on the Dockerfiles in it. Currently, no trigger is defined to create/update Docker images at Docker Hub, it must be done manually. But we can define triggers based on GitHub events or define Cron tasks.

jdirocco commented 6 years ago

Thank you! Can we close this issue?

MarcioMateus commented 6 years ago

Yes, I think that the main question is already addressed.