Skip to content

Repository for the official DSocker images for the CloudOpting platform

Notifications You must be signed in to change notification settings

CloudOpting/Dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Repository for the official DSocker images for the CloudOpting platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published