Skip to content

Project Types

NPM

The Docker image for npm-based projects has NodeJS 10.15.3 engine.

For checking of security state for packages we are using official Security Advisories.

Your project must contains the following files:

  • package.json
  • npm-shrinkwrap.json or package-lock.json

Composer

The Docker image for composer-based projects has PHP 7.3 engine and contains the following extensions are allowed:

  • php-dev
  • php-cli
  • php-zip
  • php-bcmath
  • php-intl
  • php-json
  • php-soap
  • php-xsl
  • php-curl
  • php-opcache
  • php-xsl
  • php-xml
  • php-mbstring
  • mcrypt

Your project must contains the following files:

  • composer.json
  • composer.lock

Dockerfile

Codario can monitor and provide updates for your Dockerfile (not for built Docker images).

The section extra in configs file is available for every Dockerfile projects:

{
  "integrations": {
   ...
  },
  "update_behavior": {
   ...
  },
  "events": {
   ...
  },
  "extra": {
    "update_policy": "patch",
    "dockerfiles" : [
      "Dockerfile.prod",
      "Dockerfile.stage"
    ],
    "policies": {
      "images": {
        "mongo": "patch",
        "redis": "minor",
      },
      "files": {
        "app1/Dockerfile": {
         "mongo": "minor",
        }
      }
    }
  }
}

Codario will monitor and provide updates for ALL files with Dockerfile name inside specified "root folder" for a project.

If you are using some specific names for your Dockerfiles, you can specify them in extra.dockerfiles section and Codario will monitor them as well. In example above Codario will monitor Dockerfile, Dockerfile.prod and Dockerfile.stage.

Codario can monitor and provide updates only for:

  • public images from hub.docker.com.
  • images, which are using major.minor.patch or major.minor in tags for defining of version.

You can specify "update policy" for your project in extra.update_policy property.

Available values for "update policy":

  • none — updates will not be applied.
  • patch — will be updated only patch section up to latest available version. For a case when an image has a tag in format major.minor, will be used "major" policy.
  • minor — will be updated minor and patch section up to latest available version.
  • major — will be updated major, minor and patch sections up to latest available version.

You can customize specific "update policy" for every image in extra.policies.images section.

You can customize specific "update policy" for every image inside a specific Dockerfile in extra.policies.files section as well. Independent on "root folder" property, you should specify a full path from "root" of your repository.