https://signoz.io logo
Title
a

Angeles MP

04/01/2023, 2:16 PM
Hi! Im trying to build an image with all the containers on docker-compose.yml file, I want to push and serve that image on a OpenShift project, could someone help or give me some tips please ?
v

Vishal Sharma

04/01/2023, 2:29 PM
@Prashant Shahi
a

Angeles MP

04/01/2023, 2:39 PM
I tried to do this: Deploy each image to my private docker registry which is linked with OpenShift namespace, I had create a route as so:
my-route/signoz-platform
with a service and deploymentConfig. The thing is I don’t get how and where I should push all the images provided on
docker-compose.yaml
and then serve the SigNoz App on that route
p

Prashant Shahi

04/01/2023, 5:22 PM
It will be tricky one but possible.
You can use the public images. If you have hard requirements of keeping it private, you can do that as well.
Volume mounting for the data as well as the configurations would be the main concern in OpenShift.
Also, there is UDF and binary that has to be mounted.
a

Angeles MP

04/02/2023, 6:23 PM
Hi thanks for your answer so I had been searching and struggling a lit bit to build the images on binary..
I have the OpenShift infrastructure ready, with the pod and route… but can do the build part
p

Prashant Shahi

04/03/2023, 10:46 AM
I had been searching and struggling a lit bit to build the images on binary..
@Angeles MP could you elaborate on what you mean by build the images on binary?
a

Angeles MP

04/03/2023, 11:08 AM
So, first I tried to build it doing :
docker-compose -f docker/clickhouse-setup/docker-compose.yaml build
to then pushed to my registry but nothing happening…
then try this mode also :
oc new-build --strategy docker --binary --docker-image signoz:latest --name signoz-app
but then I got this error:
Error from server (BadRequest): unable to wait for build signoz-5 to run: timed out waiting for the condition
p

Prashant Shahi

04/03/2023, 4:36 PM
can you try
docker-compose -f docker/clickhouse-setup/docker-compose.yaml pull
from appropriate amd/arm architecture machine. Then rename it, and push it to your registry instead?
you do not have to build it from scratch. If you really need to, you can use Makefile targets.
a

Angeles MP

04/03/2023, 8:06 PM
what do you mean by pulling docker-compose ? I already have the images on my machine but I want is to serve it the app on OpenShift
p

Prashant Shahi

04/04/2023, 7:31 AM
Yes, you can rename the images on your machine using
docker tag
and include your private registry name and push it there.
a

Angeles MP

04/04/2023, 7:43 AM
ok I will try to do this now. But then how I rely each image to make and see the app on my route/pod. Does each image need a pod ? Sorry I do not have too much experience on docker 😕
p

Prashant Shahi

04/04/2023, 7:50 AM
I see.
Is OpenShift a must-have requirement for you?
Are you trying to deploy in OpenShift container platform or OpenShift Kubernetes Engine?
a

Angeles MP

04/04/2023, 7:57 AM
OKD version 3, which I assume is kubernetes engine
hello