cloud-run-button icon indicating copy to clipboard operation
cloud-run-button copied to clipboard

multiple apps with a single button

Open matti opened this issue 5 years ago • 10 comments

you know, a microservice/microlith thing as a button

matti avatar Mar 04 '20 02:03 matti

Please be more descriptive. I cannot understand what you’re saying.

ahmetb avatar Mar 04 '20 04:03 ahmetb

[
  {app1},
  {app2}
]

matti avatar Mar 04 '20 07:03 matti

Are you thinking for monorepos or for multirepo?

Also, you could do this today with a pre/post create script, but that is kinda messy.

jamesward avatar Mar 04 '20 15:03 jamesward

I think for both... but the use case I have in mind is in 6 different repos (although if I had the time and energy I would merge them to one monorepo)

What about adding support to specify image: in the app.json ? like this way the button could be anywhere..?

matti avatar Mar 04 '20 16:03 matti

But really what I'm talking about that if I have an app that has services like "frontend" that connect to "billing" and "users" and as a true microlith does... then it would be cool to deploy that kind of app with one click.

matti avatar Mar 04 '20 16:03 matti

What about adding support to specify image: in the app.json ? like this way the button could be anywhere..?

Can you elaborate on that?

jamesward avatar Mar 04 '20 16:03 jamesward

good question - I started to explain and I realized that it would mean that the image version is set to something and it's not updated when the repository is updated. so scratch that.

So yeah, something like

[
  {app1},
  {app2}
]

or

{
  name: "mainapp",
  env: {...},
  subapps: [
    {
       name: "mainapp-sub1"
       env: {....
    },
    {
       name: "mainapp-sub2"
       env: {....
    },
  ]
}

matti avatar Mar 04 '20 16:03 matti

This came up in other forms like "can you add support for docker compose".

Right now, there's nothing preventing someone from deploying a multi-tier application by placing 2 different buttons in their readme with ?dir= parameter.

Since there's not enough demand volume, I'm not sure if it will be worth rearchitecting everything.

ahmetb avatar Mar 04 '20 17:03 ahmetb

Sure that works. So for a six service app you need six buttons.

matti avatar Mar 04 '20 20:03 matti

Suggest close. Multi isolated services with multi buttons works now. Multiple things on one install button (like docker-compose) logically extends to something like Terraform. So I feel like the outstanding scope of this issue is a dupe of (https://github.com/GoogleCloudPlatform/cloud-run-button/issues/137)

tomlarkworthy avatar Jun 28 '20 10:06 tomlarkworthy