Spring Boot Lattice CF

Spring Boot Lattice CF

当我使用 windows ltc 客户端使用以下命令时:

ltc build-droplet lattice-demo java --memory-mb 512 --path=build/libs/lattice-demo-1.0.0.jar

ltc build-droplet lattice-demo java --memory-mb=512 --path=build/libs/lattice-demo-1.0.0.jar

其次是: ltc launch-droplet lattice-demo lattice-demo

latticecf 中的 droplet 只分配给容器 128MB。

我做错了什么吗?

我正在使用 lattice-bundle-v0.7。0-1-ge5365cd\vagrant>vagrant up --provider virtualbox,分配给 VM 的内存为 4GB 和 6 个 CPU。

ltc build-droplet 似乎没有使用 --memory-mb 标志:

ltc build-droplet DROPLET_NAME http://github.com/buildpack-url creates a droplet by running a Cloud Foundry Buildpack on an application directory.

  • --path=. path to droplet source (file or folder)
  • --env NAME[=VALUE] specifies environment variables. You can have multiple --env flags. Passing an --env flag without explicitly setting the VALUE uses the current execution context to set the value.
  • --timeout=2m sets the maximum polling duration for building the droplet.

另一方面,您真正想要的是将该标志传递给 ltc launch-droplet:

ltc launch-droplet has the same options as ltc create, except for --user, --privileged and --working-dir.

如果我们看 ltc create:

  • --memory-mb=128 specifies the memory limit to apply to the container.
    • Set this to 0 to allow unlimited memory usage.