Repository for the official Docker images for the CloudOpting platform
Write a new Dockerfile based on one of the base images.
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
# 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