Deploying SigNoz App in OpenShift with Private Docker Images

TLDR Angeles inquires about deploying SigNoz App on OpenShift using private images from a docker-compose.yml file. Prashant offers advice on using public images or private registries, navigating volume mounting and binary concerns, and pushing images to the private registry.

Photo of Angeles
Angeles
Sat, 01 Apr 2023 14:16:30 UTC

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 ?

Photo of vishal-signoz
vishal-signoz
Sat, 01 Apr 2023 14:29:42 UTC

Prashant

Photo of Angeles
Angeles
Sat, 01 Apr 2023 14:39:17 UTC

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

Photo of Prashant
Prashant
Sat, 01 Apr 2023 17:22:35 UTC

It will be tricky one but possible.

Photo of Prashant
Prashant
Sat, 01 Apr 2023 17:23:30 UTC

You can use the public images. If you have hard requirements of keeping it private, you can do that as well.

Photo of Prashant
Prashant
Sat, 01 Apr 2023 17:24:26 UTC

Volume mounting for the data as well as the configurations would be the main concern in OpenShift.

Photo of Prashant
Prashant
Sat, 01 Apr 2023 17:24:51 UTC

Also, there is UDF and binary that has to be mounted.

Photo of Angeles
Angeles
Sun, 02 Apr 2023 18:23:57 UTC

Hi thanks for your answer so I had been searching and struggling a lit bit to build the images on binary..

Photo of Angeles
Angeles
Mon, 03 Apr 2023 10:36:42 UTC

I have the OpenShift infrastructure ready, with the pod and route… but can do the build part

Photo of Prashant
Prashant
Mon, 03 Apr 2023 10:46:16 UTC

> I had been searching and struggling a lit bit to build the images on binary.. Angeles could you elaborate on what you mean by build the images on binary?

Photo of Angeles
Angeles
Mon, 03 Apr 2023 11:08:15 UTC

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…

Photo of Angeles
Angeles
Mon, 03 Apr 2023 11:10:50 UTC

then try this mode also : `oc new-build --strategy docker --binary --docker-image signoz:latest --name signoz-app`

Photo of Angeles
Angeles
Mon, 03 Apr 2023 11:17:20 UTC

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`

Photo of Prashant
Prashant
Mon, 03 Apr 2023 16:36:53 UTC

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?

Photo of Prashant
Prashant
Mon, 03 Apr 2023 16:37:19 UTC

you do not have to build it from scratch. If you really need to, you can use Makefile targets.

Photo of Angeles
Angeles
Mon, 03 Apr 2023 20:06:49 UTC

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

Photo of Prashant
Prashant
Tue, 04 Apr 2023 07:31:25 UTC

Yes, you can rename the images on your machine using `docker tag` and include your private registry name and push it there.

Photo of Angeles
Angeles
Tue, 04 Apr 2023 07:43:28 UTC

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 :confused:

Photo of Prashant
Prashant
Tue, 04 Apr 2023 07:50:47 UTC

I see.

Photo of Prashant
Prashant
Tue, 04 Apr 2023 07:50:48 UTC

Is OpenShift a must-have requirement for you?

Photo of Prashant
Prashant
Tue, 04 Apr 2023 07:51:31 UTC

Are you trying to deploy in OpenShift container platform or OpenShift Kubernetes Engine?

Photo of Angeles
Angeles
Tue, 04 Apr 2023 07:57:07 UTC

OKD version 3, which I assume is kubernetes engine

Photo of Angeles
Angeles
Tue, 11 Apr 2023 11:02:32 UTC

hello