foreman_docker
enables provisioning and managing of Docker containers and images in Foreman, all of that under the GPL v3+ license.
- Website: TheForeman.org
- ServerFault tag: Foreman
- Issues: foreman_docker Redmine
- Wiki: Foreman wiki
- Community and support: #theforeman for general support, #theforeman-dev for development chat in Freenode
- Mailing lists:
- Special view with logs and processes of Foreman managed containers
- Wizard for container creation and cgroups configuration
- Commit and upload containers: creates an image with the status of your current container
- Container listing and basic CRUD operations
- Kubernetes integration
- Events stream (#8037)
- Tight integration between Docker hosts Atomic and CoreOS and containers (#7653, #7652)
- Quickstart images - pre-supplied images and configuration (#7869)
- Environment variables support (#8226)
- Support to expose ports during creation or at runtime (#7864)
- Links to other containers (#7866)
- API (#7874)
- Hammer CLI support (#8227)
Please see the Foreman manual for appropriate instructions:
Set up the repo as explained in the link above, then run
# yum install ruby193-rubygem-foreman_docker
Set up the repo as explained in the link above, then run
# apt-get install ruby-foreman-docker
Add the following to bundler.d/Gemfile.local.rb in your Foreman installation directory (/usr/share/foreman by default)
$ gem 'foreman_docker'
Then run bundle install
and foreman-rake db:migrate
from the same directory
To verify that the installation was successful, go to Foreman, top bar Administer > About and check 'foreman_docker' shows up in the System Status menu under the Plugins tab. You should also see a 'Containers' button show up in the top bar, similar to this
Go to Infrastructure > Compute Resources and click on "New Compute Resource".
Choose the Docker provider, and fill in all the fields. User name, password, and email are used so that Docker clients such as Foreman can make the host download images from the Docker hub. Your password will be encrypted in the database.
That's it. You're now ready to create and manage containers in your new Docker compute resource.
Foreman | Plugin |
---|---|
>= 1.5 | 0.0.1 - 0.0.3 |
>= 1.6 | 0.1.0 - 0.2.0 |
>= 1.7 | 1.0.0+ |
See extras/RELEASE.md for more detailed information on compatibility and releases.
Generally, follow the Foreman guidelines. For code-related contributions, fork this project and send a pull request with all changes. Some things to keep in mind:
- Code from the master branch can contain features only present in Fog's master branch, we commit to wait for the next Fog release to put that code in a foreman-docker release.
- Follow the rules about commit message style and create a Redmine issue. Doing this right will help reviewers to get your contribution merged faster.
- Rubocop will analyze your code, you can run it locally with
rake rubocop
. - All of our pull requests run the full test suite in our Jenkins CI system. Please include tests in your pull requests for any additions or changes in functionality
Run rake test:docker
from your Foreman directory to run the test suite.
You can get the develop branch of the plugin by specifying your Gemfile in this way:
gem 'foreman_docker', :git => "https://github.com/theforeman/foreman-docker.git"
Copyright (c) 2014 Amos Benari
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.