https://github.com/example42/tp-dockerfiles
Dockerfiles based on Tiny Data
https://github.com/example42/tp-dockerfiles
Last synced: 17 days ago
JSON representation
Dockerfiles based on Tiny Data
- Host: GitHub
- URL: https://github.com/example42/tp-dockerfiles
- Owner: example42
- Created: 2016-03-30T10:57:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-12T20:29:50.000Z (almost 9 years ago)
- Last Synced: 2025-03-04T17:49:26.153Z (4 months ago)
- Language: Puppet
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deprecation notice
This repo is no longer maintained.
Check [example42 control-repo](https://github.com/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](https://github.com/example42/tinydata).
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