Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.19 KB

File metadata and controls

53 lines (36 loc) · 1.19 KB

Docker bases

Repository for the official Docker images for the CloudOpting platform

Use

Write a new Dockerfile based on one of the base images.

Requisites for inheritors

Dockerfiles based on the base images must be compliant with these rules:

  • Reference the base image: FROM cloudopting/ubuntubase:14.04
  • Do application specific stuff (if needed)
  • Do cleaning (if needed)
  • Add puppet related stuff (mandatory if you want to apply a manifest):
### Add puppet modules
ADD modules /tmp/modules

### Add manifest to apply
ADD images/<imagename>/manifest.pp /tmp/manifest.pp

### Apply manifest
RUN puppet apply --modulepath=/tmp/modules /tmp/manifest.pp

Example

# Use base
FROM cloudopting/ubuntubase:14.04

# OPTIONAL:

### Specific application stuff
RUN git clone https://github.com/someorg/somerepo
RUN apt-get -yq update && apt-get install -y some-packages

### Cleaning
RUN apt-get clean && rm -rf /var/lib/apt /var/cache/apt/archives/* /tmp/*


# MANDATORY:
### Add puppet modules
ADD modules /tmp/modules

### Add manifest to apply
ADD images/apache/manifest.pp /tmp/manifest.pp

### Apply manifest
RUN puppet apply --modulepath=/tmp/modules /tmp/manifest.pp