Skip to content

Commit a661900

Browse files
Moved composition examples to example section
1 parent fc9a050 commit a661900

File tree

7 files changed

+37
-23
lines changed

7 files changed

+37
-23
lines changed

_data/nav.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,18 @@
194194
- title: Populate a database with existing data
195195
url: "/populate-a-database-with-existing-data"
196196

197+
198+
- title: Import data to MongoDB
199+
url: "/import-data-to-mongodb"
200+
- title: NodeJS + Angular2 + MongoDB
201+
url: "/nodejs-angular2-mongodb"
202+
- title: Secure a Docker Container Using HTTP Basic Auth
203+
url: "/secure-a-docker-container-using-http-basic-auth"
204+
- title: Spring Boot + Kafka + Zookeeper
205+
url: "/spring-boot-kafka-zookeeper"
206+
- title: Web terminal
207+
url: "/web-terminal"
208+
197209
- title: Use kubectl as part of Freestyle step
198210
url: "/use-kubectl-as-part-of-freestyle-step"
199211
- title: Deploy with Helm
@@ -316,19 +328,6 @@
316328
url: "/share-your-environment-with-your-team"
317329
- title: Composition Service Discovery (Experimental)
318330
url: "/composition-service-discovery"
319-
- title: Example compositions
320-
url: "/example-compositions"
321-
sub-pages:
322-
- title: Web terminal
323-
url: "/web-terminal"
324-
- title: Import data to MongoDB
325-
url: "/import-data-to-mongodb"
326-
- title: NodeJS + Angular2 + MongoDB
327-
url: "/nodejs-angular2-mongodb"
328-
- title: Secure a Docker Container Using HTTP Basic Auth
329-
url: "/secure-a-docker-container-using-http-basic-auth"
330-
- title: Spring Boot + Kafka + Zookeeper
331-
url: "/spring-boot-kafka-zookeeper"
332331

333332

334333

_docs/yaml-examples/examples.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ Codefresh has support for both [unit]({{site.baseurl}}/docs/testing/unit-tests/)
6464
- [Launching a Composition and Defining a Service Environment Variables using a file]({{site.baseurl}}/docs/yaml-examples/examples/launching-a-composition-and-defining-a-service-environment-variables-using-a-file)
6565
- [Populate a Database with Existing Data]({{site.baseurl}}/docs/yaml-examples/examples/populate-a-database-with-existing-data)
6666

67+
## Preview environments
68+
69+
Codefresh can automatically launch environments (powered by Docker swarm) to [preview a Pull Reqest or feature]({{site.baseurl}}/docs/getting-started/on-demand-environments/). The definition of the environment can come from an existing composition, a docker-compose file or an inline YAML. Preview environments can be launched manually or [automatically from pipelines]({{site.baseurl}}/docs/codefresh-yaml/steps/launch-composition/).
70+
71+
- [MongoDB preload data]({{site.baseurl}}/docs/yaml-examples/examples/import-data-to-mongodb/)
72+
- [NodeJS + Angular2 + MongoDB]({{site.baseurl}}/docs/yaml-examples/examples/nodejs-angular2-mongodb/)
73+
- [NGINX Basic Auth]({{site.baseurl}}/docs/yaml-examples/examples/secure-a-docker-container-using-http-basic-auth/)
74+
- [Spring Boot + Kafka + Zookeeper]({{site.baseurl}}/docs/yaml-examples/examples/spring-boot-kafka-zookeeper/)
75+
- [Web terminal]({{site.baseurl}}/docs/yaml-examples/examples/web-terminal/)
76+
6777
## Deployment
6878

6979
Codefresh can deploy to any platform such as VMs, FTP/SSH/S3 sites, app servers but of course it has great support for [Kubernetes clusters]({{site.baseurl}}/docs/deploy-to-kubernetes/deployment-options-to-kubernetes/) and [Helm releases]({{site.baseurl}}/docs/new-helm/helm-releases-management/):
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
title: "Import data to MongoDB"
44
description: ""
5-
group: on-demand-test-environment
6-
sub_group: example-compositions
5+
group: yaml-examples
6+
sub_group: examples
77
redirect_from:
88
- /docs/import-data-to-mongodb-in-composition/
9+
- /docs/on-demand-test-environment/example-compositions/import-data-to-mongodb/
910
toc: true
1011
---
1112

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: "NodeJS + Angular2 + MongoDB"
33
description: ""
4-
group: on-demand-test-environment
5-
sub_group: example-compositions
4+
group: yaml-examples
5+
sub_group: examples
66
redirect_from:
77
- /docs/nodejs-angular2-mongodb/
8+
- /docs/on-demand-test-environment/example-compositions/nodejs-angular2-mongodb/
89
toc: true
910
---
1011
This tutorial will walk you through the process of adding the following:
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
title: "Secure a Docker Container Using HTTP Basic Auth"
33
description: ""
4-
group: on-demand-test-environment
5-
sub_group: example-compositions
4+
group: yaml-examples
5+
sub_group: examples
66
redirect_from:
77
- /docs/securing-docker-container-with-http-basic-auth/
88
- /docs/on-demand-test-environment/examples-compositions/securing-docker-container-with-http-basic-auth/
9+
- /docs/on-demand-test-environment/example-compositions/secure-a-docker-container-using-http-basic-auth/
910
toc: true
1011
---
1112
Before making a product publicly available, you might want to restrict access to certain users. These are some options to accomplish this goal:
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: "Spring Boot + Kafka + Zookeeper"
33
description: ""
4-
group: on-demand-test-environment
5-
sub_group: example-compositions
4+
group: yaml-examples
5+
sub_group: examples
66
redirect_from:
77
- /docs/spring-boot-kafka-zookeeper/
8+
- /docs/on-demand-test-environment/example-compositions/spring-boot-kafka-zookeeper/
89
toc: true
910
---
1011
This project uses `Java, Spring Boot, Kafka, Zookeeper` to show you how to integrate these services in the composition.

_docs/on-demand-test-environment/example-compositions/web-terminal.md renamed to _docs/yaml-examples/examples/web-terminal.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: "Web terminal"
33
description: ""
4-
group: on-demand-test-environment
5-
sub_group: example-compositions
4+
group: yaml-examples
5+
sub_group: examples
66
redirect_from:
77
- /docs/web-terminal/
8+
- /docs/on-demand-test-environment/example-compositions/web-terminal/
89
toc: true
910
---
1011
This example shows you how to access containers running in a Codefresh standup environment.

0 commit comments

Comments
 (0)