如何在云代工厂中使用docker-compose.yml部署docker app

时间:2022-12-17 21:51:53

I have a docker-compose.yml file which have environment variable and certificates. I like to deploy these in cloud foundry dev version. I want to deploy microgateway on cloud foundry link for microgateway is below- https://github.com/CAAPIM/Microgateway

我有一个docker-compose.yml文件,它有环境变量和证书。我喜欢在云代工厂开发版本中部署这些。我想在microgateway的云代工厂链接上部署microgateway,请访问以下网址:https://github.com/CAAPIM/Microgateway

1 个解决方案

#1


0  

In cloud native world, you instantiate the services to your foundation beforehand. You can use prebuilt services (auto-scaler) available from the market place.

在云原生世界中,您事先将服务实例化到您的基础。您可以使用市场上提供的预建服务(自动缩放器)。

If the service you want is not available, you can install a tile (e.g redis, mysql, rabbitmq), which will add services to the market place. Lot of vendors provide tiles that can be installed on PCF (check on newtork.pivotal.io for the full list).

如果您想要的服务不可用,您可以安装一个磁贴(例如redis,mysql,rabbitmq),这将向市场添加服务。许多供应商提供可以安装在PCF上的磁贴(有关完整列表,请查看newtork.pivotal.io)。

If you have services that are outside of cloud foundry (e.g. Oracle, Mongo, or MS Sql Server), and you wish to inject them into your cloud foundry foundation, you can create do that by creating User Provide Services (cups).

如果您拥有云代工厂之外的服务(例如Oracle,Mongo或MS Sql Server),并且您希望将它们注入您的云代工基础,则可以通过创建用户提供服务(杯子)来创建。

Once you have a service, you have to create a service instance. Think of it as provisioning a service for you. After you have provisioned i.e. created a service instance, then you can bind it to one or more apps.

获得服务后,您必须创建服务实例。将其视为为您提供服务。配置后,即创建服务实例,然后您可以将其绑定到一个或多个应用程序。

A service instance is scoped to an org and a space. All apps within a org - space, can be bound to that service instance.

服务实例的范围限定为组织和空间。组织空间内的所有应用程序都可以绑定到该服务实例。

You deploy your app individually, by itself, to cloud foundry (jar, war, zip). You then bind any needed services to your app (e.g db, scaling, caching etc).

您可以将应用程序单独部署到云代工厂(jar,war,zip)。然后,您可以将任何所需的服务绑定到您的应用程序(例如db,scaling,caching等)。

Use a manifest file to do all these steps in one deployment.

使用清单文件在一个部署中执行所有这些步骤。

PCF 2.0 is introducing PKS - Pivotal Container Service. It is implementation of Kubo within PCF. It is still not GA.

PCF 2.0正在推出PKS - Pivotal Container Service。它是PCF中Kubo的实现。它仍然不是GA。

Kubo, Kubernetes, and PKS allow you to deployed your containerized applications.

Kubo,Kubernetes和PKS允许您部署容器化应用程序。

I have played with MiniKube and little bit of Kubo. Still getting my hands wet on PKS.

我玩过MiniKube和Kubo。仍在PKS上弄湿手。

Hope this helps!

希望这可以帮助!

#1


0  

In cloud native world, you instantiate the services to your foundation beforehand. You can use prebuilt services (auto-scaler) available from the market place.

在云原生世界中,您事先将服务实例化到您的基础。您可以使用市场上提供的预建服务(自动缩放器)。

If the service you want is not available, you can install a tile (e.g redis, mysql, rabbitmq), which will add services to the market place. Lot of vendors provide tiles that can be installed on PCF (check on newtork.pivotal.io for the full list).

如果您想要的服务不可用,您可以安装一个磁贴(例如redis,mysql,rabbitmq),这将向市场添加服务。许多供应商提供可以安装在PCF上的磁贴(有关完整列表,请查看newtork.pivotal.io)。

If you have services that are outside of cloud foundry (e.g. Oracle, Mongo, or MS Sql Server), and you wish to inject them into your cloud foundry foundation, you can create do that by creating User Provide Services (cups).

如果您拥有云代工厂之外的服务(例如Oracle,Mongo或MS Sql Server),并且您希望将它们注入您的云代工基础,则可以通过创建用户提供服务(杯子)来创建。

Once you have a service, you have to create a service instance. Think of it as provisioning a service for you. After you have provisioned i.e. created a service instance, then you can bind it to one or more apps.

获得服务后,您必须创建服务实例。将其视为为您提供服务。配置后,即创建服务实例,然后您可以将其绑定到一个或多个应用程序。

A service instance is scoped to an org and a space. All apps within a org - space, can be bound to that service instance.

服务实例的范围限定为组织和空间。组织空间内的所有应用程序都可以绑定到该服务实例。

You deploy your app individually, by itself, to cloud foundry (jar, war, zip). You then bind any needed services to your app (e.g db, scaling, caching etc).

您可以将应用程序单独部署到云代工厂(jar,war,zip)。然后,您可以将任何所需的服务绑定到您的应用程序(例如db,scaling,caching等)。

Use a manifest file to do all these steps in one deployment.

使用清单文件在一个部署中执行所有这些步骤。

PCF 2.0 is introducing PKS - Pivotal Container Service. It is implementation of Kubo within PCF. It is still not GA.

PCF 2.0正在推出PKS - Pivotal Container Service。它是PCF中Kubo的实现。它仍然不是GA。

Kubo, Kubernetes, and PKS allow you to deployed your containerized applications.

Kubo,Kubernetes和PKS允许您部署容器化应用程序。

I have played with MiniKube and little bit of Kubo. Still getting my hands wet on PKS.

我玩过MiniKube和Kubo。仍在PKS上弄湿手。

Hope this helps!

希望这可以帮助!