Launch Composition

Using this repository, we’ll help you get up to speed with basic functionality such as: building Docker images and launching composition.

This project uses Node JS to build an application which will eventually become a distributable Docker image.

Looking around

In the root of this repository, you’ll find a file named codefresh.yml, this is our build descriptor and it describes the different steps that comprise our process. Let’s quickly review the contents of this file:


version: '1.0'
    title: Building Image
    type: build
    #Important: rename this image to to a valid repository in your registry. For example: myUserName/vote
    image_name: codefresh/example-launch-compose
    #Dockerfile location should be relative to the working directory
    dockerfile: Dockerfile

    title: Launch Composition
    type: launch-composition
    composition: docker-compose.yml
    environment_name: 'cf-example-launch-composition'
    entry_point: app
    fail_fast: false
          - master

More about launch_composition step you can read here

Your environments are limited

Be aware that the number of environments you can run is limited. When using the same environment name the old one would terminate before launching the new environment. That way you can control the number of environments running in your account.


Just head over to the example repository in Github and follow the instructions there.