Codeship

Before You Begin

These instructions describe how to push a Docker image from Codeship to Tenable.io Container Security.

These steps assume you are already comfortable using Codeship and are already pushing Docker images to a public or private registry. If you are already using Codeship, but have not built Docker container images, familiarize yourself with the Codeship documentation Pushing to a remote registry.

Steps

  1. Edit the codeship-services.yml file to use the repository name and image name specified in Tenable.io Container Security.

    app:

    build:

    image: repository_name/image_name

    dockerfile_path: Dockerfile

    Note: If this is the first time you are pushing an image into the repository, there is not a preconfigured image name. The image name is added automatically after the push from Codeship.

  2. Edit the service section of the the codeship-steps.yml file to look similar to the following example:

    service:

    app type: push

    image_name: repository_name/image_name

    registry: registry.cloud.tenable.com

    encrypted_dockercfg_path: dockercfg.encrypted

    Codeship builds are sent to Tenable.io Container Security for storage, distribution, vulnerability scanning, and malicious code scanning.