example42/tp-dockerfiles

Name: tp-dockerfiles

Owner: Example42

Description: Dockerfiles based on Tiny Data

Created: 2016-03-30 10:57:42.0

Updated: 2016-03-30 10:58:17.0

Pushed: 2016-08-12 20:29:50.0

Homepage: null

Size: 17

Language: Puppet

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Deprecation notice

This repo is no longer maintained.

Check example42 control-repo for a complete Puppet environment with Docker integration..

Dockerfiles based on Tiny Data

This repo contains the toolset needed to generate Dockerfiles and build the relevant images for different OS and different applications based on Tiny Data.

The `dockerfiles` directory contains some Dockerfiles generated for selected apps and OS and (eventually) pushed to Docker Hub under the example42 account.

Setup and configuration

You can use this repo from any host where you have Puppet 4 and Docker installed.

All the following commands should be run from this repo's base directory.

To install the Tiny Puppet module, used to build the Dockerfiles run:

r10k puppetfile install

To configure the main Docker settings edit the `config` file:

vi config

To customise what you want to do with your Dockerfiles (select the apps to dockerize, build the base images, push them to the Docker Hub) edit `generate.pp`

vi generate.pp

If you enable the push option you will need a Docker Hub account, configure it in the `config` file and run:

docker login
Generation of dockerfiles

To Generate the dockerfiles and build the relevant images (by default they are not pushed to the Hub, in order to automate also the pushing edit `generate.pp`) just run:

./generate.sh

You will be prompted the base OS to use. This can be specified also directly as first argument, for example:

./generate.sh ubuntu1404

Check the generated Dockerfiles under the `dockerfile` directory.To see the images built run:

docker images

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.