docs: document default portainer stack boundary
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
# Default production stack: GB32960, JT808, Yutong MQTT, history, analytics.
|
||||||
|
# Legacy and optional services stay outside this compose file.
|
||||||
# Set LINGNIU_IMAGE_VERSION in Portainer Stack env, for example:
|
# Set LINGNIU_IMAGE_VERSION in Portainer Stack env, for example:
|
||||||
# main-0.1.0-SNAPSHOT-22468e7
|
# main-0.1.0-SNAPSHOT-22468e7
|
||||||
x-common-env: &common-env
|
x-common-env: &common-env
|
||||||
|
|||||||
@@ -10,6 +10,20 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
|
|
||||||
class PortainerComposeResourceLimitsTest {
|
class PortainerComposeResourceLimitsTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void portainerStackDocumentsDefaultProductionSurfaceOnly() throws IOException {
|
||||||
|
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||||
|
|
||||||
|
assertThat(compose)
|
||||||
|
.contains("Default production stack: GB32960, JT808, Yutong MQTT, history, analytics.")
|
||||||
|
.contains("Legacy and optional services stay outside this compose file.")
|
||||||
|
.doesNotContain("\n xinda-push-app:\n")
|
||||||
|
.doesNotContain("\n command-gateway:\n")
|
||||||
|
.doesNotContain("\n vehicle-state-service:\n")
|
||||||
|
.doesNotContain("\n raw-archive-store:\n")
|
||||||
|
.doesNotContain("\n event-file-store:\n");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void productionServicesHaveOverridableMemoryLimits() throws IOException {
|
void productionServicesHaveOverridableMemoryLimits() throws IOException {
|
||||||
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||||
|
|||||||
Reference in New Issue
Block a user