Reference Navigation Down arrow

VM DASHBOARD

DOCKER
ACCOUNTS
USERS
APPLICATIONS
JOBS
ENVIRONMENTS
RELEASES
DEPLOYMENTS
BUILDS
SERVERS
WORKFLOWS
APP GROUPS
INTEGRATIONS
NOTIFICATIONS
GROUPS
PIPELINES
DASHBOARDS

Docker Dockerfile and Distelli


A Dockerfile defines the build steps run information for a Docker image/container.

When building Docker images with Distelli, a Dockerfile is required.

This document provides a basic example to get started building with Docker on Distelli.

For more information on Docker Dockerfile see the Dockerfile reference.

Example Dockerfile

FROM ubuntu:14.04

RUN sudo apt-get -y update
RUN sudo apt-get -y install apache2
ADD ./bin/server /

EXPOSE 8080
CMD ["/server", "8080"]

Anatomy of a Dockerfile

Dockerfile Anatomy

  • FROM - Specifies a base Docker image to start from. To find a listing of base images look here.
  • RUN - Allows you to run commands that will build on top of the base image. This is similar to the PreInstall section of the Distelli manifest.
  • ADD - Allows you to specify what build artifacts (files) to package into the Docker image. This is a source destination mapping. In the example ./bin/server from the build artifact will be placed in / on the Docker image/container.
  • EXPOSE - Allows you to export specific network ports from the Docker container.
  • CMD - Specifies the command(s) to run when running this container.

Using Dockerfile with Distelli Builds

Building Docker images with Distelli requires a Dockerfile. Typically this file exists in the root of your application repository, but can exist in a directory of the repository. See Distell Docker settings for specifying an alternate path to the Dockerfile.

The above information should be enough to get you started building Docker images with Distelli.

Using Dockerfile with Distelli K8S Builds

Building Docker images with Distelli for use in Kubernetes will require adding the repository (container) to a project. For more info see: Adding a container to a project.

Product Documentation

Product Documentation Index