Getting my S2I image in the cluster

22 views
Skip to first unread message

Vishal Biyani

unread,
Jan 26, 2021, 11:34:46 AM1/26/21
to Syndesis
Hi Everyone,

I have been hacking around with Syndesis and deploying on my minishift cluster. The standard installation and integrations work great. But I am struggling with when I have to customize something in base Syndesis and then install it. Also please feel free to point me to the right place if this is not a place for these questions!

The build itself works great and I can see the images in the namespace
$ syndesis build --app-images --image --flash --project vishal

Now I want to use the images I built with changes to deploy to another namespace but something I am struggling to get right. I don't know if it is something super trivial but let me explain what I tried and triaged so far:

1) I tried installing with syndesis by passing the tag - but it picks up the image from the Dockerhub syndesis repo and does not use the one I build in the previous step

syndesis minishift --install --nodev --project vishal-dep3 --local --tag 1.10.0

2) I noticed that Syndesis calls under the hood syndesis-operator binary[1] so I tried to find the right flags I could pass to the binary. I added an env variable such as FUSE_S2I_IMAGE based on the env variable it adds to the spec[2] but that did not help

3) I tried syndesis-operator binary directly with flags such as --image and --tag and also with --operator-config but they did not seem to help either.

Basically, no matter which method I tried - it was still fetching the syndesis-s2i and syndesis-server images from upstream syndesis docker repo and not from my images built in the previous step. Am I am missing something obvious here?


Thanks
-Vishal

Zoran Regvart

unread,
Jan 26, 2021, 4:05:59 PM1/26/21
to Vishal Biyani, Syndesis
Hi Vishal,
I think you have two options, pull from images you already pushed to
the different namespace[1], or rebuild and use `--project` to specify
the different namespace to publish images to.

zoran

[1] https://docs.openshift.com/container-platform/4.6/openshift_images/image-streams-manage.html#managing-image-streams
> --
> You received this message because you are subscribed to the Google Groups "Syndesis" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syndesis+u...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/syndesis/8a968e20-b7db-42f4-8b0f-e7fc46353303n%40googlegroups.com.



--
Zoran Regvart

Vishal Biyani

unread,
Jan 26, 2021, 9:59:16 PM1/26/21
to Syndesis
Hi Zoran,
Thanks for the pointers. I was able to build the image and push it to a specific namespace. What I think I am missing is the link to picking up the right image. Apart from imagestream and registry - do I have to change anything to point to my images instead of upstream images?  

Zoran Regvart

unread,
Jan 27, 2021, 6:04:12 AM1/27/21
to Vishal Biyani, Syndesis
Hi Vishal,
you also have several options: you can enable development mode on the
operator[1] and make sure your image streams are up to date with your
changes; you can push to a docker registry and reference those tags by
using a custom operator configuration[2].

As always, make sure to look at the DeploymentConfigs and see what
image streams are they pointing to and what those image streams use as
the source.

zoran

[1] https://syndesis.io/docs/cli/troubleshooting/#pods-self-updating
[2] https://github.com/syndesisio/syndesis/blob/master/install/operator/build/conf/config.yaml

On Wed, Jan 27, 2021 at 3:59 AM 'Vishal Biyani' via Syndesis
> To view this discussion on the web, visit https://groups.google.com/d/msgid/syndesis/13f5fda1-4d6d-4c8b-b0ee-35e215a6c3c0n%40googlegroups.com.



--
Zoran Regvart

Vishal Biyani

unread,
Feb 4, 2021, 4:37:46 AM2/4/21
to Syndesis
Hi Zoran,

I tried some combinations and finally got it working - thanks a ton for pointers. I will see if I can contribute the learnings to improve docs or do a simple blog post next week or so.

Thanks
~Vishal

Zoran Regvart

unread,
Feb 4, 2021, 5:39:09 AM2/4/21
to Vishal Biyani, Syndesis
On Thu, Feb 4, 2021 at 10:37 AM 'Vishal Biyani' via Syndesis
<synd...@googlegroups.com> wrote:
> I tried some combinations and finally got it working - thanks a ton for pointers. I will see if I can contribute the learnings to improve docs or do a simple blog post next week or so.

That would be awesome, thank you :)

zoran
--
Zoran Regvart
Reply all
Reply to author
Forward
0 new messages